Skip to content

Fix: Simplify SR-OS IS-IS template with 'configure_router' macro#2475

Merged
ipspace merged 1 commit intodevfrom
sros-cfg-rtr
Jul 3, 2025
Merged

Fix: Simplify SR-OS IS-IS template with 'configure_router' macro#2475
ipspace merged 1 commit intodevfrom
sros-cfg-rtr

Conversation

@ipspace
Copy link
Owner

@ipspace ipspace commented Jul 3, 2025

Most SR-OS configuration templates used 'declare_router' macro that would select the correct service configuration path based on interface data, leading to an awkward recreation of interface data in case we really wanted to configure a router, not an interface.

This fix adds another layer of indirection (proving RFC 1925) in front of the 'declare_router' macro to make the routing protocol configuration templates a bit cleaner.

Most SR-OS configuration templates used 'declare_router' macro
that would select the correct service configuration path based on
interface data, leading to an awkward recreation of interface data
in case we really wanted to configure a router, not an interface.

This fix adds another layer of indirection (proving RFC 1925) in
front of the 'declare_router' macro to make the routing protocol
configuration templates a bit cleaner.
ipspace added a commit that referenced this pull request Jul 3, 2025
@ipspace ipspace merged commit 110bf8a into dev Jul 3, 2025
@ipspace ipspace deleted the sros-cfg-rtr branch July 3, 2025 05:38
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.

1 participant