Create the right type of object
This commit is contained in:
parent
4d350ced7e
commit
a65f876483
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue