diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-05 19:26:19 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-05 19:31:22 +0300 |
| commit | 7bced643b977e48bc36791614c949ddf19bc97a1 (patch) | |
| tree | 0148ac46b87388d552f4499987d8299604446a20 /lib/xref.h | |
| parent | de11c1bc24d4c729ed715fd5fddc0478d7d6d466 (diff) | |
ospfd: fix redistribution config when vrf doesn't exist
Currently ospfd relies on vrf bitmaps in zclient to check that the
redistribution is configured. This doesn't work when the VRF for OSPF
instance doesn't exist yet, because vrf bitmaps ignore VRF_UNKNOWN id.
Because of this, the following problems occur when the VRF doesn't exist:
- repeated "redistribute smth" command is processed as a first-time
instead of an update
- "no redistribute smth" doesn't work at all
This commit fixes both issues by relying on internal redistribution
config instead of zclient vrf bitmaps.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/xref.h')
0 files changed, 0 insertions, 0 deletions
