]> git.puffer.fish Git - matthieu/frr.git/commit
ospf6d: fix argument processing in the "area ... range" command
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 21 Jul 2021 16:34:56 +0000 (13:34 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Wed, 21 Jul 2021 18:02:13 +0000 (15:02 -0300)
commit848db95c5aff7c387fe09efd4c91088bc7918ecb
treebf9238e1acaca4fb46a51cdf73fa3df51b83df85
parentc12647b9907d12831c64e22195f5de5a07a56e45
ospf6d: fix argument processing in the "area ... range" command

* When the "cost" argument isn't present, the default cost should be
  used instead of preserving the previously configured one (if any);
* When the "not-advertise" argument isn't present, the "not-advertise"
  flag should be unset regardless if it was previously configured or
  not.

Configuration commands should be deterministic and work in the same
way regardless of the current state.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospf6d/ospf6_area.c