show ip route prints a cache it never computes: a converged lab reads as empty and an early question reads as settled #1360
Labels
No labels
blocked-on-build
bug
device
device-request
enhancement
from-github
needs-datasheet
needs-info
needs-triage
ready-for-agent
ready-for-human
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1360
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?
The console prints control-plane results without ever computing them, so the same question gets different answers
depending on what ran before it.
The control planes are results:
computeStp(),computeVrrp(),computeOspf()andcomputeBgp()each writetheir conclusions onto the devices, and each honours
runAtMs.show ip routeprints whatever the last computationleft there — and the console never runs one.
Measured on two ISR 4331s with a segment behind each and OSPF configured on all four interfaces:
Two defects follow:
(no O routes)on a lab that is fully converged. Theroutes only appear if a
pingor a load happened to run the OSPF computation first.show ip routeat instant 5000 after a settled run and it prints routesthat will not exist for another 11000 ms. The same question, asked twice, answers differently.
Same family as
dev.stpin #1336 — the console reading a cache instead of the model.What must be true instead
showrefreshes the control planes at the instant the session is standing at, before producing output — the samefour computations the packet path already runs before it sends anything;
showmay compute; it must not destroy. Recompute only the processes the device is configured to run:recomputing an unconfigured process does not give the same answer twice, it erases the device's learned routes. This
is not hypothetical — the first version recomputed unconditionally and
test/routes-agreement.test.jscaught it, adevice whose fixture-installed
ospfRoutescame back with one prefix instead of four;is directly connectedwording.