]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: make vty nexthop/nexthop-group output consistent
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 5 Dec 2019 21:17:42 +0000 (16:17 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 6 Dec 2019 19:04:02 +0000 (14:04 -0500)
commitadd5e0a4cf9284b344d5325b258a70157522d053
tree2a72dc7385b3ad654b622a4932dcf8857b90257e
parent3259cde6374a34a61f11b24e69ac90a77e03a248
pbrd: make vty nexthop/nexthop-group output consistent

The vty output for pbr maps with a nexthop-group was not
consistent with those configured with an individual nexthop.
Fix that so its easier for users to read.

alfred# show pbr map
  pbr-map TEST1 valid: 1
    Seq: 222 rule: 521
        Installed: yes Reason: Valid
        SRC Match: 2.2.2.2/32
        Nexthop-Group: blue
                Installed: yes Tableid: 10000
    Seq: 333 rule: 632
        Installed: yes Reason: Valid
        SRC Match: 3.3.3.3/32
        Nexthop-Group: blue
                Installed: yes Tableid: 10000
    Seq: 444 rule: 743
        Installed: yes Reason: Valid
        SRC Match: 4.4.4.4/32
        Nexthop-Group: blue
                Installed: yes Tableid: 10000
    Seq: 555 rule: 854
        Installed: yes Reason: Valid
        SRC Match: 5.5.5.5/32
        Nexthop-Group: red
                Installed: yes Tableid: 10001
    Seq: 666 rule: 965
        Installed: yes Reason: Valid
        SRC Match: 6.6.6.6/32
        nexthop 1.1.1.1
                Installed: yes Tableid: 10002
alfred#

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
pbrd/pbr_vty.c