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:
@ -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':
|
||||
|
Reference in New Issue
Block a user