mirror_frr/ospfd
Igor Ryzhov 3eec4ee077 ospfd: fix passive interface configuration
Currently, passive interface flag is configured from the router node
using "passive-interface IFNAME". There are multiple problems with this
command:
- it is not in line with all other interface-related commands - other
  parameters are configured from the interface node using "ip ospf"
  prefix
- it is not in line with OSPFv3 - passive flag is configured from the
  interface node using "ipv6 ospf6 passive" command
- most importantly, it doesn't work correctly when the interface is in
  a different VRF - when using VRF-lite, it incorrectly changes the
  vrf_id of the interface and it becomes desynced with the actual state;
  when using netns, it creates a new fake interface and configures it
  instead of configuring the necessary interface

To fix all the problems, this commit adds a new command to the interface
configuration node - "ip ospf passive". The purpose of the command is
completely the same, but it works correctly in a multi-VRF environment.

The old command is preserved for the backward compatibility, but the
warning is added that it is deprecated because it doesn't work correctly
with VRFs.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-06-05 18:25:01 +03:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
ChangeLog.opaque.txt Initial revision 2003-02-03 16:31:16 +00:00
Makefile build: non-recursive ospf* 2017-08-04 11:09:50 +02:00
ospf_abr.c ospfd: install Type-7 when NSSA area is configured after redistribution 2021-04-12 09:34:20 -04:00
ospf_abr.h ospfd: fix NSSA translator 2020-11-18 23:23:14 -08:00
ospf_api.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_api.h ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_apiserver.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_apiserver.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_asbr.c ospfd: Use _func__ instead of __PRETTY_FUNCTION__ 2021-05-12 12:03:59 -04:00
ospf_asbr.h ospfd: install Type-7 when NSSA area is configured after redistribution 2021-04-12 09:34:20 -04:00
ospf_ase.c ospfd: Remove #if 0 code 2021-01-28 13:21:12 -05:00
ospf_ase.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_bfd.c lib: remove enabled flag for bfd sessions 2021-04-22 16:39:29 +03:00
ospf_bfd.h ospfd: rework BFD integration 2021-03-23 10:18:42 -03:00
ospf_dump_api.c ospfd: replace inet_ntoa 2020-10-22 13:37:25 -04:00
ospf_dump_api.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ospf_dump.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_dump.h ospfd: add debug option for BFD 2021-03-23 10:18:42 -03:00
ospf_errors.c ospfd: Add Segment Routing Local Block 2020-08-20 14:37:40 +02:00
ospf_errors.h ospfd: Add Segment Routing Local Block 2020-08-20 14:37:40 +02:00
ospf_ext.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_ext.h ospfd: Add Segment Routing Local Block 2020-08-20 14:37:40 +02:00
ospf_flood.c ospfd: Use _func__ instead of __PRETTY_FUNCTION__ 2021-05-12 12:03:59 -04:00
ospf_flood.h ospfd: OSPFv2 VRF Support 2017-10-03 09:15:19 -07:00
ospf_gr_helper.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_gr_helper.h ospfd: make reason string production safer 2020-10-14 12:51:52 -04:00
ospf_ia.c ospfd: replace inet_ntoa 2020-10-22 13:37:25 -04:00
ospf_ia.h *: reindent 2017-07-17 14:04:07 +02:00
ospf_interface.c ospfd: Fix quick interface down up event handling in ospf 2021-05-25 14:43:40 -04:00
ospf_interface.h ospfd: Support use of ospf with DMVPN 2021-04-06 09:22:59 +12:00
ospf_ism.c *: require semicolon after DEFINE_HOOK & co. 2021-03-17 06:18:17 +01:00
ospf_ism.h *: require semicolon after DEFINE_HOOK & co. 2021-03-17 06:18:17 +01:00
ospf_ldp_sync.c ospfd: Prevent sending of uninited data to zebra 2021-01-30 14:13:34 -05:00
ospf_ldp_sync.h ldpd, isisd, ospfd: Remove periodic ldp-sync hello message 2020-12-09 14:11:38 -05:00
ospf_lsa.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_lsa.h ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_lsdb.c ospfd: replace pqueue_* with DECLARE_SKIPLIST 2019-04-27 19:33:45 +02:00
ospf_lsdb.h ospfd: replace pqueue_* with DECLARE_SKIPLIST 2019-04-27 19:33:45 +02:00
ospf_main.c ospfd: North-bound implementation for ospfd rmaps 2021-03-30 22:59:30 +03:00
ospf_memory.c *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
ospf_memory.h *: require semicolon after DEFINE_MTYPE & co 2021-03-17 06:18:17 +01:00
ospf_neighbor.c ospfd: rework BFD integration 2021-03-23 10:18:42 -03:00
ospf_neighbor.h ospfd: rework BFD integration 2021-03-23 10:18:42 -03:00
ospf_network.c ospfd: replace inet_ntoa 2020-10-22 13:37:25 -04:00
ospf_network.h ospfd: basic support for VRF NETNS backend 2018-02-27 11:11:24 +01:00
ospf_nsm.c ospfd: Use _func__ instead of __PRETTY_FUNCTION__ 2021-05-12 12:03:59 -04:00
ospf_nsm.h *: require semicolon after DEFINE_HOOK & co. 2021-03-17 06:18:17 +01:00
ospf_opaque.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_opaque.h ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_packet.c ospfd: Use _func__ instead of __PRETTY_FUNCTION__ 2021-05-12 12:03:59 -04:00
ospf_packet.h ospfd: fix typos 2020-10-07 01:53:13 -07:00
ospf_ri.c ospfd: New code adds newline to log files 2021-05-19 15:10:48 -04:00
ospf_ri.h ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_route.c ospfd: Fix quick interface down up event handling in ospf 2021-05-25 14:43:40 -04:00
ospf_route.h ospfd: Fix quick interface down up event handling in ospf 2021-05-25 14:43:40 -04:00
ospf_routemap_nb_config.c *: make sure config.h or zebra.h is first 2021-04-23 12:06:35 +02:00
ospf_routemap_nb.c *: make sure config.h or zebra.h is first 2021-04-23 12:06:35 +02:00
ospf_routemap_nb.h ospfd: North-bound implementation for ospfd rmaps 2021-03-30 22:59:30 +03:00
ospf_routemap.c ospfd: North-bound implementation for ospfd rmaps 2021-03-30 22:59:30 +03:00
ospf_snmp.c build: make builddir include path consistent 2021-04-21 15:42:33 +02:00
ospf_spf.c ospfd: Use _func__ instead of __PRETTY_FUNCTION__ 2021-05-12 12:03:59 -04:00
ospf_spf.h ospfd: Max multipath config support 2021-03-29 22:04:46 -07:00
ospf_sr.c ospfd: Correct Coverity defects 2021-05-19 09:48:54 +02:00
ospf_sr.h Merge pull request #8690 from idryzhov/ospf-fix-tlv-size 2021-05-19 16:16:35 +02:00
ospf_te.c ospfd: New code adds newline to log files 2021-05-19 15:10:48 -04:00
ospf_te.h ospfd: Add Link-State support 2021-03-23 15:39:29 +01:00
ospf_ti_lfa.c *: require semicolon after DEFINE_<typesafe...> 2021-03-17 06:18:39 +01:00
ospf_ti_lfa.h ospfd: Add support for TI-LFA node protection 2021-01-19 15:32:13 +00:00
ospf_vty.c ospfd: fix passive interface configuration 2021-06-05 18:25:01 +03:00
ospf_vty.h ospfd: TI-LFA basic infrastructure and algorithms 2021-01-19 15:32:13 +00:00
ospf_zebra.c Merge pull request #8634 from idryzhov/ospf-vrf-redist 2021-05-07 15:22:19 -04:00
ospf_zebra.h ospfd: fix redistribution config when vrf doesn't exist 2021-05-05 19:31:22 +03:00
OSPF-ALIGNMENT.txt *: Remove cvs control points 2017-12-05 17:28:12 -05:00
ospfd.c ospfd: fix passive interface configuration 2021-06-05 18:25:01 +03:00
ospfd.h ospfd: install Type-7 when NSSA area is configured after redistribution 2021-04-12 09:34:20 -04:00
subdir.am build: properly split CFLAGS from AC_CFLAGS 2021-04-21 15:42:36 +02:00