예제 #1
0
 def initialize_gateway(self, network_ref):
     mac_address = utils.generate_mac_address()
     dev = linux_net.plug(network_ref, mac_address,
                 gateway=(network_ref['gateway'] is not None))
     linux_net.initialize_gateway_device(dev, network_ref)
 def initialize_gateway(self, network_ref):
     mac_address = utils.generate_mac_address()
     dev = linux_net.plug(network_ref, mac_address,
                 gateway=(network_ref['gateway'] is not None))
     linux_net.initialize_gateway_device(dev, network_ref)