@@ -270,7 +270,7 @@ def is_port_vlan_member(config_db, port, vlan):
270
270
return False
271
271
272
272
def interface_is_in_vlan (vlan_member_table , interface_name ):
273
- """ Check if an interface is in a vlan """
273
+ """ Check if an interface is in a vlan """
274
274
for _ ,intf in vlan_member_table :
275
275
if intf == interface_name :
276
276
return True
@@ -437,12 +437,12 @@ def run_command_in_alias_mode(command):
437
437
print_output_in_alias_mode (output , index )
438
438
439
439
elif (command .startswith ("sudo sfputil show eeprom" )):
440
- """show interface transceiver eeprom"""
440
+ """Show interface transceiver eeprom"""
441
441
index = 0
442
442
print_output_in_alias_mode (raw_output , index )
443
443
444
444
elif (command .startswith ("sudo sfputil show" )):
445
- """show interface transceiver lpmode,
445
+ """Show interface transceiver lpmode,
446
446
presence
447
447
"""
448
448
index = 0
@@ -452,23 +452,23 @@ def run_command_in_alias_mode(command):
452
452
print_output_in_alias_mode (output , index )
453
453
454
454
elif command == "sudo lldpshow" :
455
- """show lldp table"""
455
+ """Show lldp table"""
456
456
index = 0
457
457
if output .startswith ("LocalPort" ):
458
458
output = output .replace ("LocalPort" , "LocalPort" .rjust (
459
459
iface_alias_converter .alias_max_length ))
460
460
print_output_in_alias_mode (output , index )
461
461
462
462
elif command .startswith ("queuestat" ):
463
- """show queue counters"""
463
+ """Show queue counters"""
464
464
index = 0
465
465
if output .startswith ("Port" ):
466
466
output = output .replace ("Port" , "Port" .rjust (
467
467
iface_alias_converter .alias_max_length ))
468
468
print_output_in_alias_mode (output , index )
469
469
470
470
elif command == "fdbshow" :
471
- """show mac"""
471
+ """Show mac"""
472
472
index = 3
473
473
if output .startswith ("No." ):
474
474
output = " " + output
@@ -479,13 +479,13 @@ def run_command_in_alias_mode(command):
479
479
print_output_in_alias_mode (output , index )
480
480
481
481
elif command .startswith ("nbrshow" ):
482
- """show arp"""
482
+ """Show arp"""
483
483
index = 2
484
484
if "Vlan" in output :
485
485
output = output .replace ('Vlan' , ' Vlan' )
486
486
print_output_in_alias_mode (output , index )
487
487
elif command .startswith ("sudo ipintutil" ):
488
- """show ip(v6) int"""
488
+ """Show ip(v6) int"""
489
489
index = 0
490
490
if output .startswith ("Interface" ):
491
491
output = output .replace ("Interface" , "Interface" .rjust (
0 commit comments