8000 zebra: Do not show SRv6 locator params when they are set to default by cscarpitta · Pull Request #18961 · FRRouting/frr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zebra: Do not show SRv6 locator params when they are set to default #18961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

cscarpitta
Copy link
Contributor

In show running-config, normally we don't show parameters that are set to the default value.

However, currently the block-len and node-len parameters of an SRv6 locator do not follow this rule, and are shown even when they are set to the default values.

The following example shows the issue:

router# configure
router(config)# segment-routing
router(config-sr)# srv6
router(config-srv6)# locators
router(config-locators)# locator MAIN
router(config-locator)# prefix fcbb:bb01:1::/48

router# show running-config
[...]
segment-routing
 srv6
  locators
   locator MAIN
    prefix fcbb:bb01:1::/48 block-len 24 node-len 24
[...]

This PR fixes the issue by hiding the block-len and node-len parameters when they are set to default.

In `show running-config`, normally we don't show parameters that are
set to the default value.

However, currently the `node-len` parameter of an SRv6 locator does
not follow this rule, and is shown even when it is set to the default
value.

The following example shows the issue:

```
router# configure
router(config)# segment-routing
router(config-sr)# srv6
router(config-srv6)# locators
router(config-locators)# locator MAIN
router(config-locator)# prefix fcbb:bb01:1::/48

router# show running-config
[...]
segment-routing
 srv6
  locators
   locator MAIN
    prefix fcbb:bb01:1::/48 block-len 24 node-len 24
[...]

```

This commit fixes the issue by hiding the `node-len` parameter when it
is set to default.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
In `show running-config`, normally we don't show parameters that are
set to the default value.

However, currently the `block-len` parameter of an SRv6 locator does
not follow this rule, and is shown even when it is set to the default
value.

The following example shows the issue:

```
router# configure
router(config)# segment-routing
router(config-sr)# srv6
router(config-srv6)# locators
router(config-locators)# locator MAIN
router(config-locator)# prefix fcbb:bb01:1::/48

router# show running-config
[...]
segment-routing
 srv6
  locators
   locator MAIN
    prefix fcbb:bb01:1::/48 block-len 24 node-len 24
[...]

```

This commit fixes the issue by hiding the `block-len` parameter when it
is set to default.

Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
@ton31337 ton31337 merged commit d659bb8 into FRRouting:master Jun 6, 2025
16 checks passed
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.

3 participants
0