]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix vni configuration in default vrf
authorIgor Ryzhov <iryzhov@nfware.com>
Sun, 14 Feb 2021 02:39:00 +0000 (05:39 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 24 Feb 2021 11:51:00 +0000 (14:51 +0300)
commit9082b3eb3de3f54538024b7276797d4cba442a19
treec501fb2c048b1ee2b0d17310af35b026148ac3b6
parent0ff791138668c50a1c60b209333091682d8926d3
zebra: fix vni configuration in default vrf

VNI configuration is done without NB layer in default VRF. It leads to
the following problems:

```
vtysh -c "conf" -c "vni 1"
vtysh -c "conf" -c "vrf default" -c "no vni"
```
Second command does nothing, because the NB node is not created by the
first command.

```
vtysh -c "conf" -c "vrf default" -c "vni 1"
vtysh -c "conf" -c "no vni 1"
```
Second command doesn't delete the NB node created by the first command.

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