1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

addons: dhcp: remove code duplicate

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2020-03-27 15:53:40 +01:00
parent 16de4e7988
commit a4b5439507

View File

@ -39,12 +39,6 @@ class dhcp(Addon, moduleBase):
Addon.__init__(self)
moduleBase.__init__(self, *args, **kargs)
self.dhclientcmd = dhclient(**kargs)
vrf_id = self._get_vrf_context()
if vrf_id and vrf_id == 'mgmt':
self.mgmt_vrf_context = True
else:
self.mgmt_vrf_context = False
self.logger.info('mgmt vrf_context = %s' %self.mgmt_vrf_context)
vrf_id = self._get_vrf_context()
if vrf_id and vrf_id == 'mgmt':