oxidecomputer / oxide.rs

The Oxide Rust SDK and CLI
Mozilla Public License 2.0
37 stars 13 forks source link

Export and Import columns may become hard to read in `oxide system networking switch-port-settings show` if there are many prefixes allowed #819

Open elaine-oxide opened 3 weeks ago

elaine-oxide commented 3 weeks ago

I am running a4x2 with:

I added filtering requirements with 3 prefixes allowed for export (I could have chosen import).

$ oxide system networking bgp filter --rack 6622a0c7-093b-4407-ab34-7ce3e3ef4f22 --switch switch1 --port qsfp0 --peer 169.254.40.1 --direction export --allowed 4.5.6.0/24 --allowed 4.5.7.0/24 --allowed 4.5.8.0/24

I note that the Export (or Import) column may become hard to read if I have many prefixes allowed.

$ oxide system networking switch-port-settings show
switch0/qsfp0
=============
Autoneg  Fec   Speed
false    None  Speed100G

Address          Lot            VLAN
169.254.10.2/30  initial-infra  None
169.254.30.2/30  initial-infra  None

BGP Peer      Config   Export          Import          Communities  Connect Retry  Delay Open  Enforce First AS  Hold Time  Idle Hold Time  Keepalive  Local Pref  Md5 Auth  Min TTL  MED   Remote ASN  VLAN
169.254.10.1  as65547  [no filtering]  [no filtering]  []           3              3           false             6          0               2          None        None      None     None  None        None
169.254.30.1  as65547  [no filtering]  [no filtering]  []           3              3           false             6          0               2          None        None      None     None  None        None

Destination  Nexthop  Vlan  Preference

switch1/qsfp0
=============
Autoneg  Fec   Speed
false    None  Speed100G

Address          Lot            VLAN
169.254.20.2/30  initial-infra  None
169.254.40.2/30  initial-infra  None

BGP Peer      Config   Export                              Import          Communities  Connect Retry  Delay Open  Enforce First AS  Hold Time  Idle Hold Time  Keepalive  Local Pref  Md5 Auth  Min TTL  MED   Remote ASN  VLAN
169.254.20.1  as65547  [no filtering]                      [no filtering]  []           3              3           false             6          3               2          None        None      None     None  None        None
169.254.40.1  as65547  [4.5.6.0/24 4.5.7.0/24 4.5.8.0/24]  [no filtering]  []           3              3           false             6          3               2          None        None      None     None  None        None

Destination  Nexthop  Vlan  Preference
ahl commented 3 weeks ago

@elaine-oxide can you please assign to yourself if you'd like to fix this or assign it to @rcgoodfellow if you would not? 😀 Thanks!