@@ -549,7 +549,7 @@ def create_json_dump_per_port_config(db, port_status_dict, per_npu_configdb, asi
549
549
if soc_ipv4_value is not None :
550
550
port_status_dict ["MUX_CABLE" ]["PORTS" ][port_name ]["SERVER" ]["soc_ipv4" ] = soc_ipv4_value
551
551
552
- def get_tunnel_route_per_port (db , port_tunnel_route , per_npu_configdb , per_npu_appl_db , asic_id , port ):
552
+ def get_tunnel_route_per_port (db , port_tunnel_route , per_npu_configdb , per_npu_appl_db , per_npu_asic_db , asic_id , port ):
553
553
554
554
mux_cfg_dict = per_npu_configdb [asic_id ].get_all (
555
555
per_npu_configdb [asic_id ].CONFIG_DB , 'MUX_CABLE|{}' .format (port ))
@@ -591,8 +591,8 @@ def create_table_dump_per_port_tunnel_route(db, print_data, per_npu_configdb, pe
591
591
print_line .append (port )
592
592
print_line .append (dest_name )
593
593
print_line .append (values ['DEST' ])
594
- print_line .append ('added' if values ['asic' ] else '-' )
595
594
print_line .append ('added' if values ['kernel' ] else '-' )
595
+ print_line .append ('added' if values ['asic' ] else '-' )
596
596
print_data .append (print_line )
597
597
598
598
@muxcable .command ()
@@ -1969,7 +1969,7 @@ def tunnel_route(db, port, json_output):
1969
1969
1970
1970
create_table_dump_per_port_tunnel_route (db , print_data , per_npu_configdb , per_npu_appl_db , per_npu_asic_db , asic_index , port )
1971
1971
1972
- headers = ['PORT' , 'DEST_TYPE' , 'DEST_ADDRESS' ]
1972
+ headers = ['PORT' , 'DEST_TYPE' , 'DEST_ADDRESS' , 'kernel' , 'asic' ]
1973
1973
1974
1974
click .echo (tabulate (print_data , headers = headers ))
1975
1975
else :
@@ -1998,7 +1998,7 @@ def tunnel_route(db, port, json_output):
1998
1998
1999
1999
create_table_dump_per_port_tunnel_route (db , print_data , per_npu_configdb , per_npu_appl_db , per_npu_asic_db , asic_id , port )
2000
2000
2001
- headers = ['PORT' , 'DEST_TYPE' , 'DEST_ADDRESS' ]
2001
+ headers = ['PORT' , 'DEST_TYPE' , 'DEST_ADDRESS' , 'kernel' , 'asic' ]
2002
2002
2003
2003
click .echo (tabulate (print_data , headers = headers ))
2004
2004
0 commit comments