Skip to content

[Nexthop][fboss2-dev] Add IPv4/IPv6 default-route tests for the static route add CLI#1383

Closed
hillol-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:static-route-default-route-tests
Closed

[Nexthop][fboss2-dev] Add IPv4/IPv6 default-route tests for the static route add CLI#1383
hillol-nexthop wants to merge 1 commit into
facebook:mainfrom
nexthop-ai:static-route-default-route-tests

Conversation

@hillol-nexthop

Copy link
Copy Markdown
Contributor

Summary

#1118 added CLI commands for interface IP addresses and static routes. Two tests written during review of the original change never made it into the branch that landed: addIpv4DefaultRoute (0.0.0.0/0) and addIpv6DefaultRoute (::/0).

This adds them to CmdConfigIpRouteTest.cpp, closing the coverage gap for adding default routes via config protocol static route add:

  • adding an IPv4 default route (0.0.0.0/0) with a nexthop
  • adding an IPv6 default route (::/0) with a nexthop

Both assert the command reports success and that the route lands in staticRoutesWithNhops with the expected prefix.

Test Plan

Test-only change. The two tests follow the exact structure of the neighboring tests in the same fixture (fresh per-test config, same assertion patterns) and pass in our CI.

PR facebook#1118 added CLI commands for interface IP addresses and static
routes. Two tests written during review of the original change never
made it into the upstream branch: addIpv4DefaultRoute (0.0.0.0/0) and
addIpv6DefaultRoute (::/0). Add them to CmdConfigIpRouteTest.cpp to
close the coverage gap for adding default routes via
`config protocol static route add`.
@hillol-nexthop
hillol-nexthop requested a review from a team as a code owner July 15, 2026 09:03
@meta-cla meta-cla Bot added the CLA Signed label Jul 15, 2026
@meta-codesync

meta-codesync Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@joseph5wu has imported this pull request. If you are a Meta employee, you can view this in D112388254.

@meta-codesync meta-codesync Bot closed this in b98f7e7 Jul 16, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 16, 2026
@meta-codesync

meta-codesync Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@joseph5wu merged this pull request in b98f7e7.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant