Add single-line visual headers to 66 command files across 10 plugins: - clarity-assist (2 commands): 💬 - claude-config-maintainer (5 commands): ⚙️ - cmdb-assistant (11 commands): 🖥️ - code-sentinel (3 commands): 🔒 - contract-validator (5 commands): ✅ - data-platform (10 commands): 📊 - doc-guardian (5 commands): 📝 - git-flow (8 commands): 🔀 - pr-review (7 commands): 🔍 - viz-platform (10 commands): 🎨 Each command now displays a consistent header at execution start: ┌────────────────────────────────────────────────────────────────┐ │ [icon] PLUGIN-NAME · Command Description │ └────────────────────────────────────────────────────────────────┘ Addresses #275 (other plugin commands visual output) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
66 lines
2.0 KiB
Markdown
66 lines
2.0 KiB
Markdown
# CMDB IP Management
|
|
|
|
## Visual Output
|
|
|
|
When executing this command, display the plugin header:
|
|
|
|
```
|
|
┌──────────────────────────────────────────────────────────────────┐
|
|
│ 🖥️ CMDB-ASSISTANT · IP Management │
|
|
└──────────────────────────────────────────────────────────────────┘
|
|
```
|
|
|
|
Then proceed with the operation.
|
|
|
|
Manage IP addresses and prefixes in NetBox.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/cmdb-ip <action> [options]
|
|
```
|
|
|
|
## Instructions
|
|
|
|
You are an IP address management (IPAM) assistant with access to NetBox.
|
|
|
|
### Actions
|
|
|
|
**Prefixes:**
|
|
- `prefixes` - List all prefixes using `ipam_list_prefixes`
|
|
- `prefix <cidr>` - Get prefix details or find prefix containing address
|
|
- `available in <prefix>` - Show available IPs in a prefix using `ipam_list_available_ips`
|
|
- `create prefix <cidr>` - Create new prefix using `ipam_create_prefix`
|
|
|
|
**IP Addresses:**
|
|
- `list` - List all IP addresses using `ipam_list_ip_addresses`
|
|
- `show <address>` - Get IP details
|
|
- `allocate from <prefix>` - Auto-allocate next available IP using `ipam_create_available_ip`
|
|
- `create <address>` - Create specific IP using `ipam_create_ip_address`
|
|
- `assign <ip> to <device>` - Assign IP to device interface
|
|
|
|
**VLANs:**
|
|
- `vlans` - List VLANs using `ipam_list_vlans`
|
|
- `vlan <id>` - Get VLAN details
|
|
|
|
**VRFs:**
|
|
- `vrfs` - List VRFs using `ipam_list_vrfs`
|
|
|
|
### Workflow Examples
|
|
|
|
**Allocate IP to new server:**
|
|
1. Find available IPs in target prefix
|
|
2. Create the IP address
|
|
3. Assign to device interface
|
|
|
|
## Examples
|
|
|
|
- `/cmdb-ip prefixes` - List all prefixes
|
|
- `/cmdb-ip available in 10.0.1.0/24` - Show available IPs
|
|
- `/cmdb-ip allocate from 10.0.1.0/24` - Get next available IP
|
|
- `/cmdb-ip assign 10.0.1.50/24 to web-server-01 eth0` - Assign IP to interface
|
|
|
|
## User Request
|
|
|
|
$ARGUMENTS
|