@@ -326,119 +326,119 @@ impl From<&[InfoBridge]> for CliLinkInfoDataBridge {
326326
327327impl std:: fmt:: Display for CliLinkInfoDataBridge {
328328 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
329- write ! ( f, "forward_delay {} " , self . forward_delay) ?;
330- write ! ( f, "hello_time {} " , self . hello_time) ?;
331- write ! ( f, "max_age {} " , self . max_age) ?;
332- write ! ( f, "ageing_time {} " , self . ageing_time) ?;
333- write ! ( f, "stp_state {} " , self . stp_state) ?;
334- write ! ( f, "priority {} " , self . priority) ?;
335- write ! ( f, "vlan_filtering {} " , self . vlan_filtering) ?;
336- write ! ( f, "vlan_protocol {} " , self . vlan_protocol) ?;
329+ write ! ( f, "forward_delay {}" , self . forward_delay) ?;
330+ write ! ( f, " hello_time {}" , self . hello_time) ?;
331+ write ! ( f, " max_age {}" , self . max_age) ?;
332+ write ! ( f, " ageing_time {}" , self . ageing_time) ?;
333+ write ! ( f, " stp_state {}" , self . stp_state) ?;
334+ write ! ( f, " priority {}" , self . priority) ?;
335+ write ! ( f, " vlan_filtering {}" , self . vlan_filtering) ?;
336+ write ! ( f, " vlan_protocol {}" , self . vlan_protocol) ?;
337337 if let Some ( bid) = & self . bridge_id {
338- write ! ( f, "bridge_id {} " , bid) ?;
338+ write ! ( f, " bridge_id {}" , bid) ?;
339339 }
340340 if let Some ( rid) = & self . root_id {
341- write ! ( f, "designated_root {} " , rid) ?;
341+ write ! ( f, " designated_root {}" , rid) ?;
342342 }
343- write ! ( f, "root_port {} " , self . root_port) ?;
344- write ! ( f, "root_path_cost {} " , self . root_path_cost) ?;
345- write ! ( f, "topology_change {} " , self . topology_change) ?;
343+ write ! ( f, " root_port {}" , self . root_port) ?;
344+ write ! ( f, " root_path_cost {}" , self . root_path_cost) ?;
345+ write ! ( f, " topology_change {}" , self . topology_change) ?;
346346 write ! (
347347 f,
348- "topology_change_detected {} " ,
348+ " topology_change_detected {}" ,
349349 self . topology_change_detected
350350 ) ?;
351- write ! ( f, "hello_timer {} " , format_bridge_timer( self . hello_timer) ) ?;
352- write ! ( f, "tcn_timer {} " , format_bridge_timer( self . tcn_timer) ) ?;
351+ write ! ( f, " hello_timer {}" , format_bridge_timer( self . hello_timer) ) ?;
352+ write ! ( f, " tcn_timer {}" , format_bridge_timer( self . tcn_timer) ) ?;
353353 write ! (
354354 f,
355- "topology_change_timer {} " ,
355+ " topology_change_timer {}" ,
356356 format_bridge_timer( self . topology_change_timer)
357357 ) ?;
358- write ! ( f, "gc_timer {} " , format_bridge_timer( self . gc_timer) ) ?;
358+ write ! ( f, " gc_timer {}" , format_bridge_timer( self . gc_timer) ) ?;
359359 if let Some ( v) = self . fdb_n_learned {
360- write ! ( f, "fdb_n_learned {} " , v) ?;
360+ write ! ( f, " fdb_n_learned {}" , v) ?;
361361 }
362362 if let Some ( v) = self . fdb_max_learned {
363- write ! ( f, "fdb_max_learned {} " , v) ?;
363+ write ! ( f, " fdb_max_learned {}" , v) ?;
364364 }
365- write ! ( f, "vlan_default_pvid {} " , self . vlan_default_pvid) ?;
365+ write ! ( f, " vlan_default_pvid {}" , self . vlan_default_pvid) ?;
366366 if let Some ( v) = self . vlan_stats_enabled {
367- write ! ( f, "vlan_stats_enabled {} " , v) ?;
367+ write ! ( f, " vlan_stats_enabled {}" , v) ?;
368368 }
369369 if let Some ( v) = self . vlan_stats_per_port {
370- write ! ( f, "vlan_stats_per_port {} " , v) ?;
370+ write ! ( f, " vlan_stats_per_port {}" , v) ?;
371371 }
372372 let mask_val: u16 = self . group_fwd_mask . parse ( ) . unwrap_or ( 0 ) ;
373373 if mask_val == 0 {
374- write ! ( f, "group_fwd_mask {} " , mask_val) ?;
374+ write ! ( f, " group_fwd_mask {}" , mask_val) ?;
375375 } else {
376- write ! ( f, "group_fwd_mask {:#x} " , mask_val) ?;
376+ write ! ( f, " group_fwd_mask {:#x}" , mask_val) ?;
377377 }
378378 if !self . group_addr . is_empty ( ) {
379- write ! ( f, "group_address {} " , self . group_addr) ?;
379+ write ! ( f, " group_address {}" , self . group_addr) ?;
380380 }
381- write ! ( f, "mcast_snooping {} " , self . mcast_snooping) ?;
381+ write ! ( f, " mcast_snooping {}" , self . mcast_snooping) ?;
382382 if let Some ( v) = self . no_linklocal_learn {
383- write ! ( f, "no_linklocal_learn {v} " ) ?;
383+ write ! ( f, " no_linklocal_learn {v}" ) ?;
384384 }
385385 if let Some ( v) = self . mcast_vlan_snooping {
386- write ! ( f, "mcast_vlan_snooping {v} " ) ?;
386+ write ! ( f, " mcast_vlan_snooping {v}" ) ?;
387387 }
388388 if let Some ( v) = self . mst_enabled {
389- write ! ( f, "mst_enabled {v} " ) ?;
389+ write ! ( f, " mst_enabled {v}" ) ?;
390390 }
391391 if let Some ( v) = self . mdb_offload_fail_notification {
392- write ! ( f, "mdb_offload_fail_notification {v} " ) ?;
392+ write ! ( f, " mdb_offload_fail_notification {v}" ) ?;
393393 }
394394 if let Some ( v) = self . fdb_local_vlan_0 {
395- write ! ( f, "fdb_local_vlan_0 {v} " ) ?;
395+ write ! ( f, " fdb_local_vlan_0 {v}" ) ?;
396396 }
397- write ! ( f, "mcast_router {} " , self . mcast_router) ?;
398- write ! ( f, "mcast_query_use_ifaddr {} " , self . mcast_query_use_ifaddr) ?;
399- write ! ( f, "mcast_querier {} " , self . mcast_querier) ?;
400- write ! ( f, "mcast_hash_elasticity {} " , self . mcast_hash_elasticity) ?;
401- write ! ( f, "mcast_hash_max {} " , self . mcast_hash_max) ?;
402- write ! ( f, "mcast_last_member_count {} " , self . mcast_last_member_cnt) ?;
397+ write ! ( f, " mcast_router {}" , self . mcast_router) ?;
398+ write ! ( f, " mcast_query_use_ifaddr {}" , self . mcast_query_use_ifaddr) ?;
399+ write ! ( f, " mcast_querier {}" , self . mcast_querier) ?;
400+ write ! ( f, " mcast_hash_elasticity {}" , self . mcast_hash_elasticity) ?;
401+ write ! ( f, " mcast_hash_max {}" , self . mcast_hash_max) ?;
402+ write ! ( f, " mcast_last_member_count {}" , self . mcast_last_member_cnt) ?;
403403 write ! (
404404 f,
405- "mcast_startup_query_count {} " ,
405+ " mcast_startup_query_count {}" ,
406406 self . mcast_startup_query_cnt
407407 ) ?;
408408 write ! (
409409 f,
410- "mcast_last_member_interval {} " ,
410+ " mcast_last_member_interval {}" ,
411411 self . mcast_last_member_intvl
412412 ) ?;
413413 write ! (
414414 f,
415- "mcast_membership_interval {} " ,
415+ " mcast_membership_interval {}" ,
416416 self . mcast_membership_intvl
417417 ) ?;
418- write ! ( f, "mcast_querier_interval {} " , self . mcast_querier_intvl) ?;
419- write ! ( f, "mcast_query_interval {} " , self . mcast_query_intvl) ?;
418+ write ! ( f, " mcast_querier_interval {}" , self . mcast_querier_intvl) ?;
419+ write ! ( f, " mcast_query_interval {}" , self . mcast_query_intvl) ?;
420420 write ! (
421421 f,
422- "mcast_query_response_interval {} " ,
422+ " mcast_query_response_interval {}" ,
423423 self . mcast_query_response_intvl
424424 ) ?;
425425 write ! (
426426 f,
427- "mcast_startup_query_interval {} " ,
427+ " mcast_startup_query_interval {}" ,
428428 self . mcast_startup_query_intvl
429429 ) ?;
430430 if let Some ( v) = self . mcast_stats_enabled {
431- write ! ( f, "mcast_stats_enabled {} " , v) ?;
431+ write ! ( f, " mcast_stats_enabled {}" , v) ?;
432432 }
433433 if let Some ( v) = self . mcast_igmp_version {
434- write ! ( f, "mcast_igmp_version {} " , v) ?;
434+ write ! ( f, " mcast_igmp_version {}" , v) ?;
435435 }
436436 if let Some ( v) = self . mcast_mld_version {
437- write ! ( f, "mcast_mld_version {} " , v) ?;
437+ write ! ( f, " mcast_mld_version {}" , v) ?;
438438 }
439- write ! ( f, "nf_call_iptables {} " , self . nf_call_iptables) ?;
440- write ! ( f, "nf_call_ip6tables {} " , self . nf_call_ip6tables) ?;
441- write ! ( f, "nf_call_arptables {}" , self . nf_call_arptables) ?;
439+ write ! ( f, " nf_call_iptables {}" , self . nf_call_iptables) ?;
440+ write ! ( f, " nf_call_ip6tables {}" , self . nf_call_ip6tables) ?;
441+ write ! ( f, " nf_call_arptables {}" , self . nf_call_arptables) ?;
442442 Ok ( ( ) )
443443 }
444444}
@@ -639,60 +639,60 @@ impl std::fmt::Display for CliLinkInfoDataBridgePort {
639639 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
640640 let on_off = |val : bool | if val { "on" } else { "off" } ;
641641
642- write ! ( f, "state {} " , self . state) ?;
643- write ! ( f, "priority {} " , self . priority) ?;
644- write ! ( f, "cost {} " , self . cost) ?;
645- write ! ( f, "hairpin {} " , on_off( self . hairpin) ) ?;
646- write ! ( f, "guard {} " , on_off( self . guard) ) ?;
647- write ! ( f, "root_block {} " , on_off( self . root_block) ) ?;
648- write ! ( f, "fastleave {} " , on_off( self . fastleave) ) ?;
649- write ! ( f, "learning {} " , on_off( self . learning) ) ?;
650- write ! ( f, "flood {} " , on_off( self . flood) ) ?;
651- write ! ( f, "port_id {} " , self . id) ?;
652- write ! ( f, "port_no {} " , self . no) ?;
653- write ! ( f, "designated_port {} " , self . designated_port) ?;
654- write ! ( f, "designated_cost {} " , self . designated_cost) ?;
642+ write ! ( f, "state {}" , self . state) ?;
643+ write ! ( f, " priority {}" , self . priority) ?;
644+ write ! ( f, " cost {}" , self . cost) ?;
645+ write ! ( f, " hairpin {}" , on_off( self . hairpin) ) ?;
646+ write ! ( f, " guard {}" , on_off( self . guard) ) ?;
647+ write ! ( f, " root_block {}" , on_off( self . root_block) ) ?;
648+ write ! ( f, " fastleave {}" , on_off( self . fastleave) ) ?;
649+ write ! ( f, " learning {}" , on_off( self . learning) ) ?;
650+ write ! ( f, " flood {}" , on_off( self . flood) ) ?;
651+ write ! ( f, " port_id {}" , self . id) ?;
652+ write ! ( f, " port_no {}" , self . no) ?;
653+ write ! ( f, " designated_port {}" , self . designated_port) ?;
654+ write ! ( f, " designated_cost {}" , self . designated_cost) ?;
655655 if let Some ( bid) = & self . bridge_id {
656- write ! ( f, "designated_bridge {} " , bid) ?;
656+ write ! ( f, " designated_bridge {}" , bid) ?;
657657 }
658658 if let Some ( rid) = & self . root_id {
659- write ! ( f, "designated_root {} " , rid) ?;
659+ write ! ( f, " designated_root {}" , rid) ?;
660660 }
661- write ! ( f, "hold_timer {} " , format_bridge_timer( self . hold_timer) ) ?;
661+ write ! ( f, " hold_timer {}" , format_bridge_timer( self . hold_timer) ) ?;
662662 write ! (
663663 f,
664- "message_age_timer {} " ,
664+ " message_age_timer {}" ,
665665 format_bridge_timer( self . message_age_timer)
666666 ) ?;
667667 write ! (
668668 f,
669- "forward_delay_timer {} " ,
669+ " forward_delay_timer {}" ,
670670 format_bridge_timer( self . forward_delay_timer)
671671 ) ?;
672- write ! ( f, "topology_change_ack {} " , self . topology_change_ack) ?;
673- write ! ( f, "config_pending {} " , self . config_pending) ?;
674- write ! ( f, "proxy_arp {} " , on_off( self . proxy_arp) ) ?;
675- write ! ( f, "proxy_arp_wifi {} " , on_off( self . proxy_arp_wifi) ) ?;
676- write ! ( f, "mcast_router {} " , self . multicast_router) ?;
677- write ! ( f, "mcast_fast_leave {} " , on_off( self . fastleave) ) ?;
678- write ! ( f, "mcast_flood {} " , on_off( self . mcast_flood) ) ?;
679- write ! ( f, "bcast_flood {} " , on_off( self . bcast_flood) ) ?;
680- write ! ( f, "mcast_to_unicast {} " , on_off( self . mcast_to_unicast) ) ?;
681- write ! ( f, "neigh_suppress {} " , on_off( self . neigh_suppress) ) ?;
672+ write ! ( f, " topology_change_ack {}" , self . topology_change_ack) ?;
673+ write ! ( f, " config_pending {}" , self . config_pending) ?;
674+ write ! ( f, " proxy_arp {}" , on_off( self . proxy_arp) ) ?;
675+ write ! ( f, " proxy_arp_wifi {}" , on_off( self . proxy_arp_wifi) ) ?;
676+ write ! ( f, " mcast_router {}" , self . multicast_router) ?;
677+ write ! ( f, " mcast_fast_leave {}" , on_off( self . fastleave) ) ?;
678+ write ! ( f, " mcast_flood {}" , on_off( self . mcast_flood) ) ?;
679+ write ! ( f, " bcast_flood {}" , on_off( self . bcast_flood) ) ?;
680+ write ! ( f, " mcast_to_unicast {}" , on_off( self . mcast_to_unicast) ) ?;
681+ write ! ( f, " neigh_suppress {}" , on_off( self . neigh_suppress) ) ?;
682682 if let Some ( v) = self . neigh_vlan_suppress {
683- write ! ( f, "neigh_vlan_suppress {} " , on_off( v) ) ?;
683+ write ! ( f, " neigh_vlan_suppress {}" , on_off( v) ) ?;
684684 } else {
685- write ! ( f, "neigh_vlan_suppress off " ) ?;
685+ write ! ( f, " neigh_vlan_suppress off" ) ?;
686686 }
687- write ! ( f, "group_fwd_mask {} " , self . group_fwd_mask) ?;
688- write ! ( f, "group_fwd_mask_str {} " , self . group_fwd_mask_str) ?;
689- write ! ( f, "vlan_tunnel {} " , on_off( self . vlan_tunnel) ) ?;
690- write ! ( f, "isolated {} " , on_off( self . isolated) ) ?;
691- write ! ( f, "locked {} " , on_off( self . locked) ) ?;
687+ write ! ( f, " group_fwd_mask {}" , self . group_fwd_mask) ?;
688+ write ! ( f, " group_fwd_mask_str {}" , self . group_fwd_mask_str) ?;
689+ write ! ( f, " vlan_tunnel {}" , on_off( self . vlan_tunnel) ) ?;
690+ write ! ( f, " isolated {}" , on_off( self . isolated) ) ?;
691+ write ! ( f, " locked {}" , on_off( self . locked) ) ?;
692692 if let Some ( v) = self . mab {
693- write ! ( f, "mab {}" , on_off( v) ) ?;
693+ write ! ( f, " mab {}" , on_off( v) ) ?;
694694 } else {
695- write ! ( f, "mab off" ) ?;
695+ write ! ( f, " mab off" ) ?;
696696 }
697697
698698 Ok ( ( ) )
0 commit comments