return [ ('vs64-1', 20), # how many plcs max in this box
]
- # vplc01 to 15
+ # vplc01 to 40
def vplc_ips (self):
return [ ( 'vplc%02d'%i, # DNS name
'unused') # MAC address
- for i in range(1,21) ]
+ for i in range(1,41) ]
def qemu_boxes_spec (self):
- return [ # how many plcs max in this box
+ return [ # how many qemus max in this box
('kvm64-1', 3), # 4 cores, 4Gb
('kvm64-2', 3), # 4 cores, 4Gb
('kvm64-3', 2), # 2 cores, 4Gb
print 'in sfa_slice_spec','slicename',slicename,'hrn',hrn,'mail',mail
key=public_key
slice_person_xml ='''<record email="%(mail)s" enabled="True" first_name="Fake" hrn="%(person_hrn)s"
-last_name="Sfa" name="%(hrn)s" type="user">
+last_name="Sfa %(rspec_style)s" name="%(hrn)s" type="user">
<keys>%(key)s</keys><role_ids>20</role_ids><role_ids>10</role_ids>
<site_ids>1</site_ids><roles>pi</roles><roles>admin</roles><sites>%(prefix)s</sites></record>'''%locals()