]> git.puffer.fish Git - mirror/frr.git/commit
staticd: fix comparison of nexthop-vrf 14147/head
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 4 Aug 2023 15:24:51 +0000 (18:24 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 4 Aug 2023 15:24:51 +0000 (18:24 +0300)
commit3eb4d42e62bd47a3265f5b08ec372108ef1388d8
tree28c41b14b91f2ba7846dde9197720b5c812df16d
parentb036c510f263c645267e73d17190c623f9ffc5db
staticd: fix comparison of nexthop-vrf

When displaying the configuration, the order of nexthop-vrf is wrong,
because the default VRF is not displayed, but still compared as the word
"default". Therefore it is placed in the middle of the list instead of
always being the first one.

Before the fix:
```
ip route 1.1.1.0/24 2.2.2.2 nexthop-vrf ccc
ip route 1.1.1.0/24 2.2.2.2
ip route 1.1.1.0/24 2.2.2.2 nexthop-vrf eee
```

After the fix:
```
ip route 1.1.1.0/24 2.2.2.2
ip route 1.1.1.0/24 2.2.2.2 nexthop-vrf ccc
ip route 1.1.1.0/24 2.2.2.2 nexthop-vrf eee
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
staticd/static_vty.c