Fix bug with dhcp close

This commit is contained in:
Joshua Boniface 2018-09-30 13:22:59 -04:00
parent 751414d2a3
commit fc8a2e1806
1 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,8 @@ class VXNetworkInstance():
self.firewall_rules = {}
self.dhcp_server = None
self.createNetwork()
# Zookeper handlers for changed states
@ -223,4 +225,5 @@ class VXNetworkInstance():
)
def stopDHCPServer(self):
self.dhcp_server.close()
if self.dhcp_server:
self.dhcp_server.close()