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

Remove node filter for the redeploy cmd #2472

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions cmd/redeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ func init() {
redeployCmd.Flags().UintVarP(&maxWorkers, "max-workers", "", 0,
"limit the maximum number of workers creating/deleting nodes")
redeployCmd.Flags().BoolVarP(&keepMgmtNet, "keep-mgmt-net", "", false, "do not remove the management network")
redeployCmd.Flags().StringSliceVarP(&common.NodeFilter, "node-filter", "", []string{},
"comma separated list of nodes to include")

// Add deploy flags
redeployCmd.Flags().BoolVarP(&common.Graph, "graph", "g", false, "generate topology graph")
Expand Down
12 changes: 0 additions & 12 deletions docs/cmd/redeploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ The `--skip-post-deploy` flag can be used to skip the post-deploy phase of the l

The local `--export-template` flag allows a user to specify a custom Go template that will be used for exporting topology data into `topology-data.json` file under the lab directory.

#### node-filter

The local `--node-filter` flag allows users to specify a subset of topology nodes targeted by `redeploy` command. The value of this flag is a comma-separated list of node names as they appear in the topology.

When a subset of nodes is specified, containerlab will only redeploy those nodes and their links and ignore the rest.

#### skip-labdir-acl

The `--skip-labdir-acl` flag can be used to skip the lab directory access control list (ACL) provisioning during the deploy phase.
Expand Down Expand Up @@ -125,9 +119,3 @@ containerlab redeploy
```bash
clab rdep -t mylab.clab.yml
```

#### Redeploy specific nodes in a lab

```bash
containerlab redeploy -t mylab.clab.yml --node-filter "node1,node2"
```
Loading