Remove some junk

This commit is contained in:
Joshua Boniface 2018-09-30 13:16:27 -04:00
parent 7ebc8ddb74
commit c4a9bb8523
1 changed files with 0 additions and 17 deletions

View File

@ -77,23 +77,6 @@ class VXNetworkInstance():
def watch_network_dhcp_status(data, stat, event=''): def watch_network_dhcp_status(data, stat, event=''):
if data != None and self.dhcp_flag != data.decode('ascii'): if data != None and self.dhcp_flag != data.decode('ascii'):
self.dhcp_flag = ( data.decode('ascii') == 'True' ) self.dhcp_flag = ( data.decode('ascii') == 'True' )
if self.dhcp_flag:
ansiiprint.echo('Starting DHCP server for network "{}".'.format(self.ip_network), '', 'o')
dhcp_config = DHCPServer.DHCPServerConfiguration(
zk_conn=self.zk_conn,
ipaddr=self.ip_gateway,
iface=self.bridge_nic,
vni=self.vni,
network=self.ip_network,
router=[self.ip_gateway],
dns_servers=[]
)
self.dhcp_instance = DHCPServer.DHCPServer(dhcp_config)
self.dhcp_instance.start()
else:
self.dhcp_instance.close()
self.dhcp_instance = None
def getvni(self): def getvni(self):
return self.vni return self.vni