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

Fix shrink expand #65

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/user-guide/shrink-expand.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,23 @@ connections may differ based on the `Switch` role given to the device. For more
section](connections.md).

!!! note
Switch devices should be booted in `ONIE` installation mode to install SONiC OS and configure the Fabric
Switch devices need to be booted in `ONIE` installation mode to install SONiC OS and configure the Fabric
Agent.

Ensure the management port of the switch is connected to fabric management network.

### Remove a switch from the existing fabric

Before you decommission a switch from the Hedgehog Fabric, several preparation steps are necessary.

!!! warning
Currently the `Wiring` diagram used for initial deployment is saved in
`/var/lib/rancher/k3s/server/manifests/hh-wiring.yaml` on the `Control` node. Fabric will sustain objects within the
original wiring diagram. In order to remove any object, first remove the dedicated API objects from this file. It is
recommended to reapply `hh-wiring.yaml` after changing its internals.
Before you decommission a switch from the Hedgehog Fabric, several preliminary steps are necessary.

* If the `Switch` is a `Leaf` switch (including `Mixed` and `Border` leaf configurations), remove all `VPCAttachments` bound to all switches `Connections`.
* If the `Switch` was used for `ExternalPeering`, remove all `ExternalAttachment` objects that are bound to the `Connections` of the `Switch`.
* Remove all connections of the `Switch`.
* At last, remove the `Switch` and `Agent` objects.

### Replace a switch from the existing fabric

To replace a switch in the fabric, you do not need to remove and re-add it. Instead:

* Edit the existing switch object to update the `MAC` address or `Serial` number of the new hardware.
* Reinstall the switch, following the boot `ONIE` process used when it was first added to the fabric.
Loading