Create the right type of object

This commit is contained in:
Joshua Boniface 2018-09-30 12:47:54 -04:00
parent 4d350ced7e
commit a65f876483
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class VXNetworkInstance():
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: if self.dhcp_flag:
self.dhcp_instance = DHCPInstance.DHCPInstance(self.vni, self.config) self.dhcp_instance = DHCPServer.DHCPServer(self.vni, self.config)
else: else:
self.dhcp_instance.remove() self.dhcp_instance.remove()
self.dhcp_instance = None self.dhcp_instance = None