cli: show ip bgp refuses a word it cannot use, instead of dropping it #2263
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!2263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1120-0512"
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?
_showBgp(args)was handed the tail and read it nowhere, soshow ip bgp 10.0.0.0/24,show ip bgp regexp ^65002,show ip bgp neighborsand a plain typo all printed the whole table — the non-answershow ip route <prefix>gave before #1403 (a table with prefixes in it reads as "yes, that one is in there").Evidence. A box refuses the word:
sh ip bgp neighbors brdraws% Invalid input detected at '^' marker.on an IOS XE switch (https://community.cisco.com/t5/routing/bgp-using-layer-3-switches/td-p/5075192). Neither spelling has a free positional word —show ip bgp's keyword list ends atroute-map <name>,show ip bgp summary's at[slow](Cisco IOS IP Routing: BGP Command Reference, irg_bgp5.html).Change.
summaryis the only word the door accepts. Anything else is refused in theshowNoTail()shape and names the Network column as where one prefix is read;show ip bgpdoes take an ip-address as a filter on a box, so the sentence is this console's claim about itself (the tradeshow ip route <prefix>already makes).neighbors/neighbour(s)answerhas no detail view here— a box has that view and this console has no detail block, so "does not take" would be the wrong sentence (the formshow ip nat translations verbosetakes). The% BGP not activeguard still runs first, so a process-less box still answers every spelling with the five words.Plan.
docs/plans/bgp-show-views.mdstep 2, refusal half (the dispatch to real per-view functions is steps 3-6 and stays open).Research.
research/show-ip-bgp-argument-refusal.md— what is known, the one inferred ordering, and the open question (does IOS parse a junk word before it consults BGP state?).Tests.
test/show-ip-bgp-argument-refusal.test.js(63 assertions): the table has content; five tails refused one line each with the words quoted and no table;summary <word>refused andsummarystill answers;neighborsanswered as a gap not a stray word; the process-less path unchanged for five spellings. Full suite: 401 suites, 13,351 assertions, 0 failed.node scripts/syntax-check.js: 481 files OK.show ip bgprefuses a word it cannot use, instead of dropping it