Skip to content

Commit c592983

Browse files
Addressing review comments
1 parent 1face1e commit c592983

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

config/main.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6702,14 +6702,9 @@ def subintf_vlan_check(config_db, parent_intf, vlan):
67026702

67036703
def is_subintf_shortname(intf):
67046704
if VLAN_SUB_INTERFACE_SEPARATOR in intf:
6705-
if intf.startswith("Eth"):
6706-
if intf.startswith("Ethernet"):
6707-
return False
6708-
return True
6709-
elif intf.startswith("Po"):
6710-
if intf.startswith("PortChannel"):
6711-
return False
6712-
return True
6705+
if intf.startswith("Ethernet") or intf.startswith("PortChannel"):
6706+
return False
6707+
return True
67136708
return False
67146709

67156710
@subinterface.command('add')

0 commit comments

Comments
 (0)