@@ -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}
0 commit comments