Repository navigation
[wicket] Support multiple uplink config entries - #3452
Merged
Merged
Conversation
Contributor
|
Awesome, thanks for the rapid turnaround! |
internet-diglett
approved these changes
Jun 29, 2023
internet-diglett
pushed a commit
that referenced
this pull request
Jun 30, 2023
Fleshes out the `wicket` bits for #3262: 1. The empty template returned by `setup get-config` now includes a sample uplink table: ```toml # ... rest of config [rack_network_config] infra_ip_first = "" infra_ip_last = "" [[rack_network_config.uplinks]] switch = "" gateway_ip = "" uplink_port = "" uplink_port_speed = "" uplink_port_fec = "" uplink_ip = "" uplink_vid = 1234 # optional - remove if no VLAN id is needed ``` 2. The populated template returned by `setup get-config` is filled in with data: ```toml # ... rest of config [rack_network_config] infra_ip_first = "172.20.26.1" infra_ip_last = "172.20.26.5" [[rack_network_config.uplinks]] switch = "switch0" gateway_ip = "1.2.3.4" uplink_port = "foo" uplink_port_speed = "speed10_g" uplink_port_fec = "none" uplink_ip = "2.3.4.5" # uplink_vid = [[rack_network_config.uplinks]] switch = "switch1" gateway_ip = "4.5.6.7" uplink_port = "bar" uplink_port_speed = "speed40_g" uplink_port_fec = "none" uplink_ip = "5.6.7.8" uplink_vid = 100 ``` 3. Multiple uplink configs can be displayed in the UI: 
internet-diglett
pushed a commit
that referenced
this pull request
Jul 6, 2023
Fleshes out the `wicket` bits for #3262: 1. The empty template returned by `setup get-config` now includes a sample uplink table: ```toml # ... rest of config [rack_network_config] infra_ip_first = "" infra_ip_last = "" [[rack_network_config.uplinks]] switch = "" gateway_ip = "" uplink_port = "" uplink_port_speed = "" uplink_port_fec = "" uplink_ip = "" uplink_vid = 1234 # optional - remove if no VLAN id is needed ``` 2. The populated template returned by `setup get-config` is filled in with data: ```toml # ... rest of config [rack_network_config] infra_ip_first = "172.20.26.1" infra_ip_last = "172.20.26.5" [[rack_network_config.uplinks]] switch = "switch0" gateway_ip = "1.2.3.4" uplink_port = "foo" uplink_port_speed = "speed10_g" uplink_port_fec = "none" uplink_ip = "2.3.4.5" # uplink_vid = [[rack_network_config.uplinks]] switch = "switch1" gateway_ip = "4.5.6.7" uplink_port = "bar" uplink_port_speed = "speed40_g" uplink_port_fec = "none" uplink_ip = "5.6.7.8" uplink_vid = 100 ``` 3. Multiple uplink configs can be displayed in the UI: 
internet-diglett
pushed a commit
that referenced
this pull request
Jul 7, 2023
Fleshes out the `wicket` bits for #3262: 1. The empty template returned by `setup get-config` now includes a sample uplink table: ```toml # ... rest of config [rack_network_config] infra_ip_first = "" infra_ip_last = "" [[rack_network_config.uplinks]] switch = "" gateway_ip = "" uplink_port = "" uplink_port_speed = "" uplink_port_fec = "" uplink_ip = "" uplink_vid = 1234 # optional - remove if no VLAN id is needed ``` 2. The populated template returned by `setup get-config` is filled in with data: ```toml # ... rest of config [rack_network_config] infra_ip_first = "172.20.26.1" infra_ip_last = "172.20.26.5" [[rack_network_config.uplinks]] switch = "switch0" gateway_ip = "1.2.3.4" uplink_port = "foo" uplink_port_speed = "speed10_g" uplink_port_fec = "none" uplink_ip = "2.3.4.5" # uplink_vid = [[rack_network_config.uplinks]] switch = "switch1" gateway_ip = "4.5.6.7" uplink_port = "bar" uplink_port_speed = "speed40_g" uplink_port_fec = "none" uplink_ip = "5.6.7.8" uplink_vid = 100 ``` 3. Multiple uplink configs can be displayed in the UI: 
internet-diglett
added a commit
that referenced
this pull request
Jul 13, 2023
* allow control plane to manage an arbitrary number of dendrite clients * populate ports for multiple switches Enable multi-switch support for RSS This commit enables multi-switch support for RSS, allowing users to specify which switch should be used for the default uplink. * package `sp-sim` into switch zone for stub and softnpu targets * use mgs to discover switch slot managed by switch zone * discover dendrite zone addresses by inspecting DNS config in service plan * enable multiple uplinks to be specified in RSS. * during RSS, for all switches present in user-provided uplink configurations, inject switches addresses as targets for NAT configuration when bringing internal services online. Enable multi-switch for Nexus handoff * Enable automatic discovery of front facing ports * Populate uplink records based on which switch the user requested * Select switches for nat entry creation based on existence of routes * Initialize Nexus with multiple Dendrite clients, mapped to their respective switch slots [wicket] Support multiple uplink config entries (#3452) Fleshes out the `wicket` bits for #3262: 1. The empty template returned by `setup get-config` now includes a sample uplink table: ```toml [rack_network_config] infra_ip_first = "" infra_ip_last = "" [[rack_network_config.uplinks]] switch = "" gateway_ip = "" uplink_port = "" uplink_port_speed = "" uplink_port_fec = "" uplink_ip = "" uplink_vid = 1234 # optional - remove if no VLAN id is needed ``` 2. The populated template returned by `setup get-config` is filled in with data: ```toml [rack_network_config] infra_ip_first = "172.20.26.1" infra_ip_last = "172.20.26.5" [[rack_network_config.uplinks]] switch = "switch0" gateway_ip = "1.2.3.4" uplink_port = "foo" uplink_port_speed = "speed10_g" uplink_port_fec = "none" uplink_ip = "2.3.4.5" [[rack_network_config.uplinks]] switch = "switch1" gateway_ip = "4.5.6.7" uplink_port = "bar" uplink_port_speed = "speed40_g" uplink_port_fec = "none" uplink_ip = "5.6.7.8" uplink_vid = 100 ``` 3. Multiple uplink configs can be displayed in the UI: 
internet-diglett
added a commit
that referenced
this pull request
Jul 13, 2023
* allow control plane to manage an arbitrary number of dendrite clients * populate ports for multiple switches Enable multi-switch support for RSS This commit enables multi-switch support for RSS, allowing users to specify which switch should be used for the default uplink. * package `sp-sim` into switch zone for stub and softnpu targets * use mgs to discover switch slot managed by switch zone * discover dendrite zone addresses by inspecting DNS config in service plan * enable multiple uplinks to be specified in RSS. * during RSS, for all switches present in user-provided uplink configurations, inject switches addresses as targets for NAT configuration when bringing internal services online. Enable multi-switch for Nexus handoff * Enable automatic discovery of front facing ports * Populate uplink records based on which switch the user requested * Select switches for nat entry creation based on existence of routes * Initialize Nexus with multiple Dendrite clients, mapped to their respective switch slots [wicket] Support multiple uplink config entries (#3452) Fleshes out the `wicket` bits for #3262: 1. The empty template returned by `setup get-config` now includes a sample uplink table: ```toml [rack_network_config] infra_ip_first = "" infra_ip_last = "" [[rack_network_config.uplinks]] switch = "" gateway_ip = "" uplink_port = "" uplink_port_speed = "" uplink_port_fec = "" uplink_ip = "" uplink_vid = 1234 # optional - remove if no VLAN id is needed ``` 2. The populated template returned by `setup get-config` is filled in with data: ```toml [rack_network_config] infra_ip_first = "172.20.26.1" infra_ip_last = "172.20.26.5" [[rack_network_config.uplinks]] switch = "switch0" gateway_ip = "1.2.3.4" uplink_port = "foo" uplink_port_speed = "speed10_g" uplink_port_fec = "none" uplink_ip = "2.3.4.5" [[rack_network_config.uplinks]] switch = "switch1" gateway_ip = "4.5.6.7" uplink_port = "bar" uplink_port_speed = "speed40_g" uplink_port_fec = "none" uplink_ip = "5.6.7.8" uplink_vid = 100 ``` 3. Multiple uplink configs can be displayed in the UI: 
internet-diglett
added a commit
that referenced
this pull request
Jul 13, 2023
Allow configuration of multiple dendrite clients
* allow control plane to manage an arbitrary number of
dendrite clients
* populate ports for multiple switches
Enable multi-switch support for RSS
This commit enables multi-switch support for RSS, allowing users
to specify which switch should be used for the default uplink.
* package `sp-sim` into switch zone for stub and softnpu targets
* use mgs to discover switch slot managed by switch zone
* discover dendrite zone addresses by inspecting DNS config in service
plan
* enable multiple uplinks to be specified in RSS.
* during RSS, for all switches present in user-provided
uplink configurations, inject switches addresses as
targets for NAT configuration when bringing internal
services online.
Enable multi-switch for Nexus handoff
* Enable automatic discovery of front facing ports
* Populate uplink records based on which switch the user requested
* Select switches for nat entry creation based on existence
of routes
* Initialize Nexus with multiple Dendrite clients, mapped to
their respective switch slots
[wicket] Support multiple uplink config entries (#3452)
Fleshes out the `wicket` bits for #3262:
1. The empty template returned by `setup get-config` now includes a
sample uplink table:
```toml
[rack_network_config]
infra_ip_first = ""
infra_ip_last = ""
[[rack_network_config.uplinks]]
switch = ""
gateway_ip = ""
uplink_port = ""
uplink_port_speed = ""
uplink_port_fec = ""
uplink_ip = ""
uplink_vid = 1234 # optional - remove if no VLAN id is needed
```
2. The populated template returned by `setup get-config` is filled in
with data:
```toml
[rack_network_config]
infra_ip_first = "172.20.26.1"
infra_ip_last = "172.20.26.5"
[[rack_network_config.uplinks]]
switch = "switch0"
gateway_ip = "1.2.3.4"
uplink_port = "foo"
uplink_port_speed = "speed10_g"
uplink_port_fec = "none"
uplink_ip = "2.3.4.5"
[[rack_network_config.uplinks]]
switch = "switch1"
gateway_ip = "4.5.6.7"
uplink_port = "bar"
uplink_port_speed = "speed40_g"
uplink_port_fec = "none"
uplink_ip = "5.6.7.8"
uplink_vid = 100
```
3. Multiple uplink configs can be displayed in the UI:

---------
Co-authored-by: John Gallagher <[email protected]>
rcgoodfellow
pushed a commit
that referenced
this pull request
Jul 14, 2023
Fleshes out the `wicket` bits for #3262: 1. The empty template returned by `setup get-config` now includes a sample uplink table: ```toml [rack_network_config] infra_ip_first = "" infra_ip_last = "" [[rack_network_config.uplinks]] switch = "" gateway_ip = "" uplink_port = "" uplink_port_speed = "" uplink_port_fec = "" uplink_ip = "" uplink_vid = 1234 # optional - remove if no VLAN id is needed ``` 2. The populated template returned by `setup get-config` is filled in with data: ```toml [rack_network_config] infra_ip_first = "172.20.26.1" infra_ip_last = "172.20.26.5" [[rack_network_config.uplinks]] switch = "switch0" gateway_ip = "1.2.3.4" uplink_port = "foo" uplink_port_speed = "speed10_g" uplink_port_fec = "none" uplink_ip = "2.3.4.5" [[rack_network_config.uplinks]] switch = "switch1" gateway_ip = "4.5.6.7" uplink_port = "bar" uplink_port_speed = "speed40_g" uplink_port_fec = "none" uplink_ip = "5.6.7.8" uplink_vid = 100 ``` 3. Multiple uplink configs can be displayed in the UI: 
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fleshes out the
wicketbits for #3262:setup get-confignow includes a sample uplink table:setup get-configis filled in with data: