from PLC.Slices import Slice, Slices
from PLC.Accessors.Accessors_standard import * # import slice accessors
+from PLC.Accessors.Accessors_omf import * # import slice accessors
class GetSliceFamily(Method):
"""
# the vref tag, if set, wins over pldistro
vref = GetSliceVref (self.api).call(auth,slice_id)
+ # omf-control'ed slivers need the omf vserver reference image
+ # this is to avoid asking users to set both tags 'omf_control' and 'vref'
+ if not vref and GetSliceOmfControl(self.api).call(auth,slice_id):
+ SetSliceVref (self.api) (auth,slice_id,'omf')
+ vref='omf'
+
# xxx would make sense to check the corresponding vserver rpms are available
# in all node-families yum repos (and yumgroups, btw)
if vref:
node.update_last_contact()
- # XMPP config
+ # XMPP config for omf federation
try:
if not self.api.config.PLC_OMF_ENABLED:
raise Exception,"OMF disabled"
}
except:
xmpp={'server':None,'user':None,'password':None}
+
return {
'timestamp': timestamp,
'node_id': node['node_id'],