]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: reset mpls-te prior to ospf router removal
authorCarlo Galiotto <carlo@voltanet.io>
Fri, 13 Nov 2020 16:35:06 +0000 (17:35 +0100)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 17 Nov 2020 18:07:59 +0000 (21:07 +0300)
commit8e0fbe74202f0c42cbf3f469bc64e71e4be5b516
tree7a6838d6c6094bfb64dc4bd3211c495b8311fa2a
parentecf598ef250a1521bf9afbcb1a858eaf7e8650ef
ospfd: reset mpls-te prior to ospf router removal

This commits attempts to fix a problem that occurs when mpls-te gets
removed from ospfd config. Mpls-te has an inter-as option, which can be
set to Off/Area/AS. Whenever the inter-as takes "Area" or "AS" as a
value, this value will not be cleaned after removing mpls-te or after
removing the ospf router. Therefore, if mpls-te is configured with
inter-as AS or Area and we remove mpls-te or the ospf router, the
inter-as will still preserve its value; therefore, next time mpls-te is
enabled, it will automatically inherits the previous inter-as value
(either Area or AS). This leads to wrong configuration, which can be a
problem for frr_reload.py.
The commits forces mpls-te to reset inter-as to Off before it mpls-te
gets removed from the configuration and before the ospf router gets
removed.

Signed-off-by: Carlo Galiotto <carlo@voltanet.io>
ospfd/ospf_opaque.c
ospfd/ospf_te.c