config: an interface stanza ends with !, the line a box prints #2087
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!2087
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1119-0412"
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?
The question
What line separates two
interfacestanzas inshow running-config- and does the printed file needexitto replay?Verdict
A bare
!. Every published running-config separates twointerfacestanzas with one, andexitis a command that leaves a mode, not a line a box writes in this file:interface GigabitEthernet0/0/0/no ip address/negotiation auto/!/interface GigabitEthernet0/0/1..., noexitanywhere in the file.show running-configreference (IOS 11.2):!between stanzas,endlast.!, theninterface FastEthernet0/0, then!,end.!is a comment, stripped when the file is loaded.What changed
engine/cli.js: the interface loop pushes!instead ofexit. The line was added by #1230, when the parser stayed inside interface mode; it no longer relies on it (a newinterfaceline is a mode switch, and a global command at an interface prompt is applied in global config), so the terminator can be the character a box prints.test/running-config-stanza-separator.test.js(17 checks): one!per stanza, the empty stanza's two lines, the last block aboveend, noexitanywhere, byte-identical replay, and a vendor-shaped paste (!separators, noexit) landing on the right ports.!as the end of a block; the old-shape replay test strips both.docs/CLI.md,CHANGELOG.md, andresearch/running-config-stanza-separator.md(what is known, what is inferred, what is unresolved).Still unresolved
Whether a bare
!typed at a real(config-if)#ends the mode. That is why theip dhcp poolstanza still closes withexithere:!is read as a comment, so the stanza after a pool would otherwise be read in pool mode. The note names the transcript that would settle it.Tests
syntax-checkOK; full suite 360 suites, 12,380 assertions, 0 failed.!, the line a box prints