Skip to content

Commit 48dbf40

Browse files
committed
chore: add dhcp kubectl fabric commands
Signed-off-by: Pau Capdevila <[email protected]>
1 parent 5f539ed commit 48dbf40

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/user-guide/dhcp.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,22 @@ kubectl fabric vpc attach \
7575
--connection server-01--mclag--leaf-01--leaf-02
7676
```
7777

78-
!!! note "CLI Limitations"
79-
The CLI does not currently support configuring static leases or advanced DHCP options. Use YAML configuration with `kubectl apply -f` for these features.
78+
## CLI helpers for leases
79+
80+
Use the CLI to manage leases without editing YAML. `static-lease` adds or updates a static lease, and
81+
`cleanup-leases` clears dynamic leases for a subnet:
82+
83+
```bash
84+
kubectl fabric vpc static-lease \
85+
--vpc vpc-1 \
86+
--subnet default \
87+
--mac 52:54:00:12:34:56 \
88+
--ip 10.10.1.50
89+
```
90+
91+
```bash
92+
kubectl fabric vpc cleanup-leases --vpc vpc-1 --subnet default
93+
```
8094

8195
## DHCP Options
8296

0 commit comments

Comments
 (0)