Skip to content

Conversation

levhuan
Copy link

@levhuan levhuan commented May 1, 2025

Per RFC1213, the value of ipRouteNextHop OID (1.3.6.1.2.1.4.21.1.7) is an IPv4 address.

In a v4-in-v6 network, the nexthop list of a 0.0.0.0/0 default route may have an IPv6 address. When that happened, we notice GET-NEXT on OID 1.3.6.1.2.1.4.21.1.7 timed-out.
 
- What I did
Change rfc1213 MIB update_date method to include IPv4 address nexthop

- How I did it

- How to verify it
Add an IPv6 address into the list of next-hops in STATE_DB "ROUTE_TABLE:0.0.0.0/0"
Verify: time docker exec snmp bash -c "snmpwalk -v2c -c public -r 5 -t 1 1.3.6.1.2.1.4.21.1.7" returned in less than 6 seconds.

- Description for the changelog
Return IPv4 address nexthop for rfc1213 ipRouteNextHop

Copy link

linux-foundation-easycla bot commented May 1, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@molssongroup
Copy link

/easycla

Update the existing tests to verify IPv6 nexthop is not included in rfc1213 MIB response

Signed-off-by: Huan V Le <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants