[dhcp agent] Fix clean_devices
Exception[1] is seen in periodic_resync of dhcp, this patch fixes it. [1] TypeError: DhcpLocalProcess.clean_devices() missing 1 \ required positional argument: 'network' Related-Bug: #1764738 Related-Bug: #1956435 Change-Id: Ie265b864718d9eaaea2f688649fcff24e47520b6
This commit is contained in:
parent
3d7a8df78c
commit
e9ce025a69
|
@ -237,7 +237,7 @@ class DhcpBase(object, metaclass=abc.ABCMeta):
|
|||
raise NotImplementedError()
|
||||
|
||||
@abc.abstractmethod
|
||||
def clean_devices(self, network):
|
||||
def clean_devices(self):
|
||||
"""Request to clean unnecessary devices for the network"""
|
||||
|
||||
|
||||
|
@ -416,9 +416,9 @@ class DhcpLocalProcess(DhcpBase, metaclass=abc.ABCMeta):
|
|||
def spawn_process(self):
|
||||
pass
|
||||
|
||||
def clean_devices(self, network):
|
||||
def clean_devices(self):
|
||||
return self.device_manager.cleanup_stale_devices(
|
||||
network, dhcp_port=None)
|
||||
self.network, dhcp_port=None)
|
||||
|
||||
|
||||
class Dnsmasq(DhcpLocalProcess):
|
||||
|
|
Loading…
Reference in New Issue