Skip to content

Commit

Permalink
Change order of deletion for speed and duplex
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitry Kuijpers committed Jun 12, 2024
1 parent 19b2473 commit fdee994
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ def del_attribs(self, obj):
commands.append(no_cmd + "switchport")
if "description" in obj:
commands.append("no description")
if "speed" in obj:
commands.append("no speed")
if "duplex" in obj:
commands.append("no duplex")
if "speed" in obj:
commands.append("no speed")
if "enabled" in obj:
sysdef_enabled = self.default_enabled(have=obj, action="delete")
if obj["enabled"] is False and sysdef_enabled is True:
Expand Down

0 comments on commit fdee994

Please sign in to comment.