Skip to content

[wicket] Support multiple uplink config entries - #3452

Merged
jgallagher merged 2 commits into
issue-3014from
issue-3014-wicket
Jun 29, 2023
Merged

jgallagher merged 2 commits into
issue-3014from
issue-3014-wicket

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

Fleshes out the wicket bits for #3262:

  1. The empty template returned by setup get-config now includes a sample uplink table:
# ... 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
  1. The populated template returned by setup get-config is filled in with data:
# ... 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
  1. Multiple uplink configs can be displayed in the UI:

multiple-uplinks

@jgallagher jgallagher changed the title Issue 3014 wicket [wicket] Support multiple uplink config entries Jun 29, 2023
@internet-diglett

Copy link
Copy Markdown
Contributor

Awesome, thanks for the rapid turnaround!

@jgallagher
jgallagher merged commit 0c7da21 into issue-3014 Jun 29, 2023
@jgallagher
jgallagher deleted the issue-3014-wicket branch June 29, 2023 17:19
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:

![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)
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:

![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)
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:

![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)
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:

![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)
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:

![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)
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:

    ![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)

---------

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:

![multiple-uplinks](https://github.com/oxidecomputer/omicron/assets/1435635/6fb31ee6-03e0-46ca-a65f-1708d1517d84)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants