Skip to content

Commit

Permalink
Remove node filter for the redeploy cmd (#2472)
Browse files Browse the repository at this point in the history
remove node filter for the redeploy cmd
  • Loading branch information
hellt authored Feb 19, 2025
1 parent 009d4ab commit 185689a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
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"
```

0 comments on commit 185689a

Please sign in to comment.