Exemple #1
0
 def processGuestNetwork(self, dbag):
     d = self.qFile.data
     dp = {}
     dp['public_ip'] = d['router_guest_ip']
     dp['netmask'] = d['router_guest_netmask']
     dp['source_nat'] = False
     dp['add'] = d['add']
     dp['one_to_one_nat'] = False
     dp['gateway'] = d['router_guest_gateway']
     dp['nic_dev_id'] = d['device'][3]
     dp['nw_type'] = 'guest'
     qf = QueueFile()
     qf.load({'ip_address': [dp], 'type': 'ips'})
     if 'domain_name' not in d.keys() or d['domain_name'] == '':
         d['domain_name'] = "cloudnine.internal"
     return cs_guestnetwork.merge(dbag, d)
Exemple #2
0
 def processGuestNetwork(self, dbag):
     d = self.qFile.data
     dp = {}
     dp['public_ip'] = d['router_guest_ip']
     dp['netmask'] = d['router_guest_netmask']
     dp['source_nat'] = False
     dp['add'] = d['add']
     dp['one_to_one_nat'] = False
     dp['gateway'] = d['router_guest_gateway']
     dp['nic_dev_id'] = d['device'][3]
     dp['nw_type'] = 'guest'
     qf = QueueFile()
     qf.load({'ip_address': [dp], 'type': 'ips'})
     if 'domain_name' not in d.keys() or d['domain_name'] == '':
         d['domain_name'] = "cloudnine.internal"
     return cs_guestnetwork.merge(dbag, d)
Exemple #3
0
 def processGuestNetwork(self, dbag):
     d = self.qFile.data
     dp = {}
     dp["public_ip"] = d["router_guest_ip"]
     dp["netmask"] = d["router_guest_netmask"]
     dp["source_nat"] = False
     dp["add"] = d["add"]
     dp["one_to_one_nat"] = False
     dp["gateway"] = d["router_guest_gateway"]
     dp["nic_dev_id"] = d["device"][3]
     dp["nw_type"] = "guest"
     qf = QueueFile()
     qf.load({"ip_address": [dp], "type": "ips"})
     if "domain_name" not in d.keys() or d["domain_name"] == "":
         d["domain_name"] = "cloudnine.internal"
     return cs_guestnetwork.merge(dbag, d)
Exemple #4
0
 def process_guestnetwork(self, dbag):
     d = self.update_dbag_contents()
     self.save_ip_dbag(d['d_ip_to_save'])
     return cs_guestnetwork.merge(dbag, d['d_to_merge'])