From 48dbf409f3e9416b371102fe8389f5679afd5487 Mon Sep 17 00:00:00 2001 From: Pau Capdevila Date: Wed, 17 Dec 2025 09:26:19 +0100 Subject: [PATCH] chore: add dhcp kubectl fabric commands Signed-off-by: Pau Capdevila --- docs/user-guide/dhcp.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/user-guide/dhcp.md b/docs/user-guide/dhcp.md index 52b2b278..41f94b32 100644 --- a/docs/user-guide/dhcp.md +++ b/docs/user-guide/dhcp.md @@ -75,8 +75,22 @@ kubectl fabric vpc attach \ --connection server-01--mclag--leaf-01--leaf-02 ``` -!!! note "CLI Limitations" - The CLI does not currently support configuring static leases or advanced DHCP options. Use YAML configuration with `kubectl apply -f` for these features. +## CLI helpers for leases + +Use the CLI to manage leases without editing YAML. `static-lease` adds or updates a static lease, and +`cleanup-leases` clears dynamic leases for a subnet: + +```bash +kubectl fabric vpc static-lease \ + --vpc vpc-1 \ + --subnet default \ + --mac 52:54:00:12:34:56 \ + --ip 10.10.1.50 +``` + +```bash +kubectl fabric vpc cleanup-leases --vpc vpc-1 --subnet default +``` ## DHCP Options