extract_device_facts
Extract hostname, device role, IPv4 addresses, subnets, and VLANs from router or switch configs in EdgeOS, MikroTik, OPNsense, FastPath, or Cisco IOS formats.
Instructions
Pull the facts out of a device config: hostname, inferred role, every IPv4 address with its subnet, the subnets it sits on, and its VLANs. EdgeOS config.boot, MikroTik export, OPNsense config.xml, EdgeSwitch/FastPath, and Cisco IOS-style text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | ||
| device | No | ||
| vendor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |