Skip to content

Conversation

@drosarius
Copy link
Contributor

@drosarius drosarius commented Dec 22, 2025

This PR adds the ability to put descriptions (up to 80 chars long) on static routes (ip route, ipv6 route, and ip mroute).
Summary of changes:

YANG: Added a description leaf to the frr-staticd.yang model.

CLI: Updated ip route, ipv6 route, and ip mroute commands to accept the description keyword

Northbound: added modify and destroy callbacks

docs: updated staticd.rst and pim.rst to include description parameter

tests: added test cases to test creation, modifying, deleting, and error handling for strings >80 characters.

Ex:

ip mroute 1.1.1.1/32 eth0 description MROUTE_DESCRIPTION
ip route 1.1.1.1/32 Null0 description IP_DESCRIPTION
ipv6 route 2001:db8::/64 2001:db8::1 description IPV6_DESCRIPTION

related: #20203

@frrbot frrbot bot added documentation staticd tests Topotests, make check, etc labels Dec 22, 2025
Implement support for setting a description on static routes.

This feature allows a user to set a text string (up to 80 chars) using
the `description` keyword to document the routes purpose.

Signed-off-by: drosarius <dustin.rosarius@gmail.com>
Signed-off-by: drosarius <dustin.rosarius@gmail.com>
Signed-off-by: drosarius <dustin.rosarius@gmail.com>
@drosarius drosarius force-pushed the feature/static_route_description branch from a99f822 to f731517 Compare December 22, 2025 16:29
Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

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

Labels

documentation master rebase PR needs rebase size/L staticd tests Topotests, make check, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants