IpRouteParser

Line-by-line parser for ip route statements.

  • Location: parsers/ip_route_parser.py
  • Dynamically finds the first IP token (destination), handles masks and next hops.
  • Parses optional tag, name, and permanent fields.
  • Robust to extra tokens (e.g. VRF qualifiers).