show access-lists cannot say which rule is denying #1267
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1267
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 access-listsprints the rules and tells you nothing about them:Meanwhile
show interfacesreports that five packets were thrown away by that list:So the console can tell you an ACL is denying, and never which line is doing it — which is the whole
reason this table is opened. The information exists:
aclLib.evaluate()already returnsmatchedIndexandwhether the implicit deny matched; the only consumer was a yes/no, and the index was discarded.
And the drop summary cannot answer the follow-up either, because it reports the list, not the rule.
Expected
reaching rule 2" is the question that follows "why is rule 2 not firing";
(0 matches)on every line of atwenty-line list;
away the traffic that matched nothing;
counted by construction;
show interfaces' drop figure for the same list;with the old rule's traffic;
counters: not measured (no simulation run), and with a run but no trafficthrough the list it says so — neither is "zero".
Scope
The existing
show access-listsoutput and the existing ACL evaluation path. No new commands.show access-listsreports which rule matched (#1267) #1268