MCPcopy Create free account
hub / github.com/apache/cloudstack / processGuestNetwork

Method processGuestNetwork

systemvm/debian/opt/cloud/bin/merge.py:150–166  ·  view source on GitHub ↗
(self, dbag)

Source from the content-addressed store, hash-verified

148 self.db.save(dbag)
149
150 def processGuestNetwork(self, dbag):
151 d = self.qFile.data
152 dp = {}
153 dp['public_ip'] = d['router_guest_ip']
154 dp['netmask'] = d['router_guest_netmask']
155 dp['source_nat'] = False
156 dp['add'] = d['add']
157 dp['one_to_one_nat'] = False
158 dp['gateway'] = d['router_guest_gateway']
159 dp['nic_dev_id'] = d['device'][3:]
160 dp['nw_type'] = 'guest'
161 dp['mtu'] = str(d['mtu'])
162 qf = QueueFile()
163 qf.load({'ip_address': [dp], 'type': 'ips'})
164 if 'domain_name' not in list(d.keys()) or d['domain_name'] == '':
165 d['domain_name'] = "cloudnine.internal"
166 return cs_guestnetwork.merge(dbag, d)
167
168 def process_dhcp_entry(self, dbag):
169 return cs_dhcp.merge(dbag, self.qFile.data)

Callers 1

processMethod · 0.95

Calls 3

loadMethod · 0.95
QueueFileClass · 0.85
keysMethod · 0.80

Tested by

no test coverage detected