show running-config omits the VLAN table, DHCP pools, DNS zones and VRRP groups #1232
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
show running-configprints the interfaces, the ACLs, the static routes and the default gateway — andnothing else. Four things you can configure through the CLI are missing from the output entirely:
vlan 42 omitcheckconfig.vlans[42].nameip dhcp pool OMITCHK…config.dhcpPools[]dns zone x.test/dns add www A …config.dnsZones[]vrrp 42 ip 10.1.2.1(in an interface)config.vrrp[]Since #1231 the output is tested to be replayable — but the round-trip test only seeds fields the
printer already printed, so it cannot notice that a whole object was never written. A "backup" taken
today silently drops the VLAN table, every DHCP pool, every DNS zone and every VRRP group.
Steps to reproduce
The output contains
hostname, one block per interface, and nothing about VLAN 42, the pool, the zoneor the VRRP group — while
show vlan,show ip dhcp pool/leases,show hostsandshow vrrpallreport them. Pasting the config into a fresh device produces a device that answers DHCP and DNS
differently from the one the config came from.
How it was found
A completeness sweep: configure a device through the CLI, then look for every configured value in the
printed text. The values that never appear are the omissions. (The same sweep correctly ignores
physical inventory — cage type, speed caps, media — which is device spec, not configuration.)
Expected
show running-config, in a form the parser acceptsback (the #1231 invariant: paste it in, get the same running-config, with the same state).
TTL, for instance, is not settable from the CLI today.
Not affected
show running-configoutput for interfaces, addresses, descriptions, shutdowns, access-groups, ACLs,static routes and the default gateway: complete, and covered by the round-trip test.
show running-confignow prints the whole config: VLANs, DHCP pools, DNS zones and VRRP (#1232) #1233no vlanreports work it did not do #1277noform, andno vlanstops lying (#1277) #1278switchport access vlan 22moves the port and never creates VLAN 22, so the port and the running-config disagree #1535switchport access vlan 22creates VLAN 22, and says so the way the device does (#1535) #1536