From c4a9bb852300efa0490d319b2c9c3c6d5c3e3ea0 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Sun, 30 Sep 2018 13:16:27 -0400 Subject: [PATCH] Remove some junk --- router-daemon/pvcrd/VXNetworkInstance.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/router-daemon/pvcrd/VXNetworkInstance.py b/router-daemon/pvcrd/VXNetworkInstance.py index 60af7ed5..ebc0b6a9 100644 --- a/router-daemon/pvcrd/VXNetworkInstance.py +++ b/router-daemon/pvcrd/VXNetworkInstance.py @@ -77,23 +77,6 @@ class VXNetworkInstance(): def watch_network_dhcp_status(data, stat, event=''): if data != None and self.dhcp_flag != data.decode('ascii'): 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): return self.vni