|
|
|
@ -190,7 +190,7 @@ class Lldp_global(ConfigBase):
|
|
|
|
if diff:
|
|
|
|
if diff:
|
|
|
|
diff = dict(diff)
|
|
|
|
diff = dict(diff)
|
|
|
|
holdtime = diff.get('holdtime')
|
|
|
|
holdtime = diff.get('holdtime')
|
|
|
|
enable = diff.get('enable')
|
|
|
|
enabled = diff.get('enabled')
|
|
|
|
timer = diff.get('timer')
|
|
|
|
timer = diff.get('timer')
|
|
|
|
reinit = diff.get('reinit')
|
|
|
|
reinit = diff.get('reinit')
|
|
|
|
tlv_select = diff.get('tlv_select')
|
|
|
|
tlv_select = diff.get('tlv_select')
|
|
|
|
@ -198,7 +198,7 @@ class Lldp_global(ConfigBase):
|
|
|
|
if holdtime:
|
|
|
|
if holdtime:
|
|
|
|
cmd = 'lldp holdtime {0}'.format(holdtime)
|
|
|
|
cmd = 'lldp holdtime {0}'.format(holdtime)
|
|
|
|
self.add_command_to_config_list(cmd, commands)
|
|
|
|
self.add_command_to_config_list(cmd, commands)
|
|
|
|
if enable:
|
|
|
|
if enabled:
|
|
|
|
cmd = 'lldp run'
|
|
|
|
cmd = 'lldp run'
|
|
|
|
self.add_command_to_config_list(cmd, commands)
|
|
|
|
self.add_command_to_config_list(cmd, commands)
|
|
|
|
if timer:
|
|
|
|
if timer:
|
|
|
|
@ -223,7 +223,7 @@ class Lldp_global(ConfigBase):
|
|
|
|
if have.get('holdtime'):
|
|
|
|
if have.get('holdtime'):
|
|
|
|
cmd = 'lldp holdtime'
|
|
|
|
cmd = 'lldp holdtime'
|
|
|
|
self._remove_command_from_config_list(cmd, commands)
|
|
|
|
self._remove_command_from_config_list(cmd, commands)
|
|
|
|
if have.get('enable'):
|
|
|
|
if have.get('enabled'):
|
|
|
|
cmd = 'lldp run'
|
|
|
|
cmd = 'lldp run'
|
|
|
|
self._remove_command_from_config_list(cmd, commands)
|
|
|
|
self._remove_command_from_config_list(cmd, commands)
|
|
|
|
if have.get('timer'):
|
|
|
|
if have.get('timer'):
|
|
|
|
|