Skip to content

Commit

Permalink
Addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
preetham-singh committed Jul 26, 2022
1 parent 1face1e commit c592983
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6702,14 +6702,9 @@ def subintf_vlan_check(config_db, parent_intf, vlan):

def is_subintf_shortname(intf):
if VLAN_SUB_INTERFACE_SEPARATOR in intf:
if intf.startswith("Eth"):
if intf.startswith("Ethernet"):
return False
return True
elif intf.startswith("Po"):
if intf.startswith("PortChannel"):
return False
return True
if intf.startswith("Ethernet") or intf.startswith("PortChannel"):
return False
return True
return False

@subinterface.command('add')
Expand Down

0 comments on commit c592983

Please sign in to comment.