Skip to content

Commit

Permalink
Fix for mode value
Browse files Browse the repository at this point in the history
  • Loading branch information
sabakram committed Mar 27, 2024
1 parent 39ca401 commit e6f1b69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions config/vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ def add_vlan_member(db, vid, port, untagged, multiple, except_flag):
elif not is_port:
port_data = config_db.get_entry('PORTCHANNEL',port)

if "mode" not in port_data:
pass
else:
if "mode" in port_data:
existing_mode = port_data["mode"]

if existing_mode == "routed":
Expand Down

0 comments on commit e6f1b69

Please sign in to comment.