Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show interfaces bridge formatting and content issues #358

Closed
jovatn opened this issue Mar 26, 2024 · 4 comments · Fixed by #371
Closed

show interfaces bridge formatting and content issues #358

jovatn opened this issue Mar 26, 2024 · 4 comments · Fixed by #371
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jovatn
Copy link
Contributor

jovatn commented Mar 26, 2024

The output of show interfaces

  • does not show the MAC address of the bridge (or the individual ports)
  • could be better formatted when lower link is down (perhaps LL-DOWN or LOWER-DOWN?)

Compare infix latest 2024-02-28:

admin@infix-06-11-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
br0             ethernet   UP          20:de:ad:06:11:01                        
│               ipv4                   198.18.101.168/24 (dhcp)
│               ipv6                   fe80::3cc3:2aff:fe19:9693/64 (link-layer)
├ e1            ethernet   DOWN        20:de:ad:06:11:01                        
├ e10           ethernet   UP          20:de:ad:06:11:0a                        
├ e2            ethernet   DOWN        20:de:ad:06:11:02                        
├ e3            ethernet   DOWN        20:de:ad:06:11:03          
...             

and infix latest 2024-03-25:

admin@infix-06-11-00:/> show interfaces 
INTERFACE       PROTOCOL   STATE       DATA                                     
br0             bridge                 
│               ipv4                   169.254.4.73/16 (random)
│               ipv4                   198.18.101.168/24 (dhcp)
│               ipv6                   fe80::ec94:b1ff:fef6:865f/64 (link-layer)
├ e1            bridge     LOWER-LAYER-DOWN
├ e2            bridge     LOWER-LAYER-DOWN
├ e3            bridge     LOWER-LAYER-DOWN
├ e4            bridge     LOWER-LAYER-DOWN
├ e5            bridge     LOWER-LAYER-DOWN
├ e6            bridge     LOWER-LAYER-DOWN
...
├ e9            bridge     LOWER-LAYER-DOWN
└ e10           bridge     FORWARDING  
@troglobit troglobit added the bug Something isn't working label Mar 26, 2024
@troglobit
Copy link
Contributor

Maybe LINK-DOWN is even better?

@troglobit troglobit added this to the Infix v24.03 milestone Mar 27, 2024
@troglobit
Copy link
Contributor

troglobit commented Mar 28, 2024

I have two alternative solutions, I like the second since it doesn't waste an extra line just for ethernet, instead it collapses onto the bridge line.
Scratch that, the second one breaks bridge VLAN membership display. What needs to be done is add the ethernet line, as in Alt 1, and the only question is if it should be listed first, with bridge info on second line, or as-is in Alt 1.

Alt 1:

INTERFACE       PROTOCOL   STATE       DATA                                     
br0             bridge                 
│               ethernet   UP          f6:03:e8:6e:77:9f                        
└ veth0b        bridge     FORWARDING  
e0              ethernet   LINK-DOWN   02:00:00:00:00:00                        

Alt 2:

INTERFACE       PROTOCOL   STATE       DATA                                     
br0             bridge     UP          f6:03:e8:6e:77:9f                        
└ veth0b        bridge     FORWARDING  
e0              ethernet   LINK-DOWN   02:00:00:00:00:00                        

Also includes my suggestion for LINK-DOWN to replace LOWER-LAYER-DOWN.

Ping: @wkz & @mattiaswal

@troglobit troglobit self-assigned this Mar 28, 2024
@wkz
Copy link
Contributor

wkz commented Mar 28, 2024

I also think "Alt 1" is the way to go. I think your order is the right one, as you end up with the same stack as regular interfaces when you configure an IP address. E.g.

INTERFACE       PROTOCOL   STATE       DATA                                     
br0             bridge                 
│               ethernet   UP          f6:03:e8:6e:77:9f                        
│               ipv6                   fe80::deff:fead:0/64 (link-layer)                        
└ veth0b        bridge     FORWARDING  
e0              ethernet   LINK-DOWN   02:00:00:00:00:00
                ipv6                   fe80::deff:fead:1c/64 (link-layer)

@troglobit
Copy link
Contributor

I'll have a go at fixing this over the weekend

troglobit added a commit that referenced this issue Mar 30, 2024
Fixes #358

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit added a commit that referenced this issue Mar 30, 2024
Issue #358

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@troglobit troglobit linked a pull request Mar 30, 2024 that will close this issue
13 tasks
troglobit added a commit that referenced this issue Apr 3, 2024
Fixes #358

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit added a commit that referenced this issue Apr 3, 2024
Translate LOWER-LAYER-DOWN -> LOWER-DOWN in "show interfaces" overview
and keep LOWER-LAYER-DOWN in detailed "show interfaces name eth0".

Issue #358

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit added a commit that referenced this issue Apr 3, 2024
Fixes #358

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
troglobit added a commit that referenced this issue Apr 3, 2024
Translate LOWER-LAYER-DOWN -> LOWER-DOWN in "show interfaces" overview
and keep LOWER-LAYER-DOWN in detailed "show interfaces name eth0".

Issue #358

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants