Skip to content

Commit

Permalink
wicket: display vlan ids
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmana committed Oct 24, 2023
1 parent 1eb9867 commit e26db07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions wicket/src/rack_setup/config_template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ infra_ip_last = ""
[[rack_network_config.ports]]
# Routes associated with this port.
# { nexthop = "1.2.3.4", destination = "0.0.0.0/0" }
# Can also optionally specify a VLAN id if the next hop is reachable
# over an 802.1Q tagged L2 segment.
# { nexthop = "5.6.7.8", destination = "5.6.7.0/24", vid = 5 }
routes = []

# Addresses associated with this port.
Expand Down
7 changes: 6 additions & 1 deletion wicket/src/ui/panes/rack_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,12 @@ fn rss_config_text<'a>(
vec![
Span::styled(" • Route : ", label_style),
Span::styled(
format!("{} -> {}", r.destination, r.nexthop),
format!(
"{} -> {} (vid={})",
r.destination,
r.nexthop,
r.vid.unwrap_or(0),
),
ok_style,
),
]
Expand Down

0 comments on commit e26db07

Please sign in to comment.