I am reading the starter code and it seems that there’s a typo in topology_reader.py
at line 15, which reads:
r.add_RIP_entry(None, rtr[0], 0, None)
I think this line is intended to add a forwarding table entry representing “The path for a router to itself has cost 0”. If this is the case, then the 2nd and 3rd argument should be swapped: cost
should be 0 and dest_IP_address
should be the source itself (rtr[0]
). The current code would mean the opposite: cost
is rtr[0]
and dest_IP_address
is 0.
Course: Grokking Computer Networking for Software Engineers - Learn Interactively
Lesson: Programming Challenge: Routing Information Protocol - Grokking Computer Networking for Software Engineers