]> git.puffer.fish Git - mirror/frr.git/commit
lib: `show route-map` should not print (null) 18515/head
authorDonald Sharp <sharpd@nvidia.com>
Wed, 26 Mar 2025 18:35:13 +0000 (14:35 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 26 Mar 2025 18:35:13 +0000 (14:35 -0400)
commitd682f42d5b3c98da11a6647518b1e699363fd412
treecdebff27a3d1a202a34a8d0d02bcdf2af3d9ff4a
parent8ca4376e01a78075bc112b1c10717d3dc29fcae6
lib: `show route-map` should not print (null)

This command:
route-map FOOBAR permit 10
 set ipv6 next-hop prefer-global
 set community 5060:12345 additive
!

When you issue a `show route-map ...` command displays this:

route-map: FOOBAR Invoked: 0 (0 milliseconds total) Optimization: enabled Processed Change: false
 permit, sequence 5 Invoked 0 (0 milliseconds total)
  Match clauses:
  Set clauses:
    ipv6 next-hop prefer-global (null)
    community 5060:12345 additive
  Call clause:
  Action:
    Exit routemap

Modify the code so that it no longer displays the NULL when there
is nothing to display.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/routemap.c