mirror_frr/zebra
Renato Westphal 8f90d89ba9 lib: retrofit interface commands to the new northbound model
The frr-interface YANG module models interfaces using a YANG list keyed
by the interface name and the interface VRF. Interfaces can't be keyed
only by their name since interface names might not be globally unique
when the netns VRF backend is in use. When using the VRF-Lite backend,
however, interface names *must* be globally unique. In this case, we need
to validate the uniqueness of interface names inside the appropriate
northbound callback since this constraint can't be expressed in the
YANG language. We must also ensure that only inactive interfaces can be
removed, among other things we need to validate in the northbound layer.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-10-27 16:16:12 -02:00
..
.gitignore *: cleanup .gitignore files 2018-09-08 21:30:42 +02:00
connected.c zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA 2018-09-13 19:23:29 +00:00
connected.h zebra, lib: error references for zebra 2018-08-14 20:02:05 +00:00
debug.c zebra: fix debug dplane cli 2018-09-19 18:34:25 -04:00
debug.h zebra: add 'debug dplane' support and cli 2018-09-19 18:34:25 -04:00
if_ioctl_solaris.c lib: retrofit interface commands to the new northbound model 2018-10-27 16:16:12 -02:00
if_ioctl.c lib: retrofit interface commands to the new northbound model 2018-10-27 16:16:12 -02:00
if_netlink.c lib: retrofit interface commands to the new northbound model 2018-10-27 16:16:12 -02:00
if_netlink.h zebra: Remove unnecessary function parameter 2018-05-24 09:14:43 -04:00
if_sysctl.c *: spelchek 2018-10-25 20:10:57 +02:00
interface.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
interface.h Merge pull request #3020 from donaldsharp/global_5549 2018-09-24 09:55:50 -04:00
ioctl_solaris.c *: LIB_[ERR|WARN] -> EC_LIB 2018-09-13 19:34:28 +00:00
ioctl_solaris.h *: reindent 2017-07-17 14:04:07 +02:00
ioctl.c *: LIB_[ERR|WARN] -> EC_LIB 2018-09-13 19:34:28 +00:00
ioctl.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
ipforward_proc.c zebra: fix includes 2018-09-06 20:56:41 +00:00
ipforward_solaris.c *: LIB_[ERR|WARN] -> EC_LIB 2018-09-13 19:34:28 +00:00
ipforward_sysctl.c *: style for EC replacements 2018-09-13 19:38:57 +00:00
ipforward.h *: reindent 2017-07-17 14:04:07 +02:00
irdp_interface.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
irdp_main.c *: style for EC replacements 2018-09-13 19:38:57 +00:00
irdp_packet.c *: spelchek 2018-10-25 20:10:57 +02:00
irdp.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
kernel_netlink.c zebra: netlink socket check (Coverity 1472236) 2018-10-03 20:28:01 +02:00
kernel_netlink.h zebra: Start abstraction of zebra_dplane_info for context passing 2018-09-19 18:34:25 -04:00
kernel_socket.c lib: retrofit interface commands to the new northbound model 2018-10-27 16:16:12 -02:00
kernel_socket.h zebra: cleanup blackhole support 2017-08-28 05:07:51 +02:00
label_manager.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
label_manager.h lib, zebra: fix formatting and style 2018-05-08 18:37:05 +02:00
main.c yang, lib: add 'frr-interface.yang' and associated stub callbacks 2018-10-27 16:16:12 -02:00
Makefile build: convert zebra/ to non-recursive build 2017-07-31 23:03:30 +02:00
redistribute.c zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA 2018-09-13 19:23:29 +00:00
redistribute.h zebra : Zebra does not properly track which route-maps are changed (#2493) 2018-08-17 08:47:48 -07:00
rib.h bgpd, lib, zebra: Wrapper get/set of table->info pointer 2018-09-23 20:04:39 -04:00
router-id.c lib,zebra: fix json output when vrf1 when not active 2018-07-27 10:17:03 -04:00
router-id.h *: make consistent & update GPLv2 file headers 2017-05-15 16:37:41 +02:00
rt_netlink.c zebra: dead code (Coverity 1473593) 2018-09-25 16:56:08 +02:00
rt_netlink.h zebra: add RTPROT_FABRICD route type 197 2018-09-05 11:38:12 +02:00
rt_socket.c zebra: Notice when a route fails to install on *bsd 2018-10-24 11:34:50 -04:00
rt.h Merge pull request #3052 from donaldsharp/dplane_2 2018-09-24 10:54:16 -04:00
rtadv.c zebra: Move rtadv to zebra_router 2018-10-24 06:54:30 -04:00
rtadv.h Revert "zebra: implement draft-bz-v4goawayflag-00" 2018-04-02 15:26:06 -04:00
rtread_getmsg.c *: LIB_[ERR|WARN] -> EC_LIB 2018-09-13 19:34:28 +00:00
rtread_netlink.c *: PBR - netlink interaction and basic definitions 2018-03-09 11:07:41 -05:00
rtread_sysctl.c zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA 2018-09-13 19:23:29 +00:00
rule_netlink.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
rule_netlink.h zebra: Remove unnecessary function parameter 2018-05-24 09:14:43 -04:00
rule_socket.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
subdir.am zebra: Start breakup of zns into zrouter and zns 2018-10-24 06:52:07 -04:00
table_manager.c *: list_delete_and_null() -> list_delete() 2018-10-02 11:40:52 +02:00
table_manager.h zebra: use hooks for client lifecycle callbacks 2018-04-22 22:50:24 -04:00
testrib.conf zebra: Build the test client, can be useful, and add IPv6 to testrib.conf 2016-05-26 01:13:58 +00:00
zapi_msg.c zebra: Move ipset_hash, ipset_entry_hash and iptable_hash into zrouter 2018-10-24 06:54:29 -04:00
zapi_msg.h zebra, lib: error references for zebra 2018-08-14 20:02:05 +00:00
zebra_dplane.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
zebra_dplane.h zebra: Start abstraction of zebra_dplane_info for context passing 2018-09-19 18:34:25 -04:00
zebra_errors.c zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA 2018-09-13 19:23:29 +00:00
zebra_errors.h zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA 2018-09-13 19:23:29 +00:00
zebra_fpm_dt.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
zebra_fpm_netlink.c zebra: Start abstraction of zebra_dplane_info for context passing 2018-09-19 18:34:25 -04:00
zebra_fpm_private.h *: reindent 2017-07-17 14:04:07 +02:00
zebra_fpm_protobuf.c *: fix clang-6 SA warnings 2018-09-08 20:34:35 +02:00
zebra_fpm.c *: style for EC replacements 2018-09-13 19:38:57 +00:00
zebra_l2_null.c *: reindent 2017-07-17 14:04:07 +02:00
zebra_l2.c *: use the FOR_ALL_INTERFACES abstraction from babeld 2017-10-10 09:05:46 -03:00
zebra_l2.h *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
zebra_memory.c *: reindent 2017-07-17 14:04:07 +02:00
zebra_memory.h zebra: Refactor 'struct rib' to be 'struct route_entry' 2017-06-01 08:00:05 -04:00
zebra_mpls_netlink.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
zebra_mpls_null.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
zebra_mpls_openbsd.c zebra: Create zebra_dplane.c and .h 2018-09-19 18:29:55 -04:00
zebra_mpls_vty.c bgpd, ospfd, pimd, zebra: Convert more use_json locations to bool 2018-09-04 17:39:04 +00:00
zebra_mpls.c *: Replace hash_cmp function return value to a bool 2018-10-19 13:14:45 -04:00
zebra_mpls.h bgpd/ospfd: make bgp and ospf json response a bit more consistent 2018-08-30 12:40:18 +00:00
zebra_mroute.c zebra: Add some additional vrf debug for retrieving mroute info 2018-09-17 09:22:31 -04:00
zebra_mroute.h zebra: standardize ZAPI message handler args 2018-03-12 14:57:05 -04:00
zebra_netns_id.c zebra: dead code (Coverity 1465497) 2018-10-02 15:45:44 +02:00
zebra_netns_id.h zebra: upon startup, a NSID is assigned to default netns 2018-02-27 11:11:24 +01:00
zebra_netns_notify.c *: LIB_[ERR|WARN] -> EC_LIB 2018-09-13 19:34:28 +00:00
zebra_netns_notify.h zebra: collect and get netnamespaces information 2018-02-27 11:11:24 +01:00
zebra_ns.c zebra: Move ipset_hash, ipset_entry_hash and iptable_hash into zrouter 2018-10-24 06:54:29 -04:00
zebra_ns.h zebra: Move rtadv to zebra_router 2018-10-24 06:54:30 -04:00
zebra_pbr.c zebra: Remove _wrap_script from hook names 2018-10-24 06:54:30 -04:00
zebra_pbr.h zebra: Remove _wrap_script from hook names 2018-10-24 06:54:30 -04:00
zebra_ptm_redistribute.c zebra_ptm: Introduce IS_BFD_ENABLED_PROTOCOL macro 2018-10-05 14:04:15 +02:00
zebra_ptm_redistribute.h *: reindent 2017-07-17 14:04:07 +02:00
zebra_ptm.c zebra_ptm: Introduce IS_BFD_ENABLED_PROTOCOL macro 2018-10-05 14:04:15 +02:00
zebra_ptm.h zebra_ptm: Add IS-IS and OpenFabric as protocols supporting BFD 2018-10-05 14:04:27 +02:00
zebra_pw.c zebra: flog_warn conversion 2018-09-06 20:56:38 +00:00
zebra_pw.h zebra: use hooks for client lifecycle callbacks 2018-04-22 22:50:24 -04:00
zebra_rib.c zebra: Start breakup of zns into zrouter and zns 2018-10-24 06:52:07 -04:00
zebra_rnh.c zebra: Start breakup of zns into zrouter and zns 2018-10-24 06:52:07 -04:00
zebra_rnh.h zebra: vrf aware routmap is missing in Zebra #2802(Part 2 of 4) 2018-10-11 10:46:55 -07:00
zebra_routemap.c zebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4) 2018-10-11 10:49:34 -07:00
zebra_routemap.h zebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4) 2018-10-11 10:49:34 -07:00
zebra_router.c zebra: Move ipset_hash, ipset_entry_hash and iptable_hash into zrouter 2018-10-24 06:54:29 -04:00
zebra_router.h zebra: Move rtadv to zebra_router 2018-10-24 06:54:30 -04:00
zebra_snmp.c *: use C99 standard fixed-width integer types 2018-03-27 15:13:34 -04:00
zebra_vrf.c zebra: Start breakup of zns into zrouter and zns 2018-10-24 06:52:07 -04:00
zebra_vrf.h lib, zebra: Allow the specification of BUM flooding 2018-10-11 20:22:19 -04:00
zebra_vty.c Merge pull request #2926 from donaldsharp/router 2018-10-26 22:24:15 +02:00
zebra_vxlan_private.h bgpd, zebra: EVPN extended mobility support 2018-08-20 19:20:06 +00:00
zebra_vxlan.c Merge pull request #2926 from donaldsharp/router 2018-10-26 22:24:15 +02:00
zebra_vxlan.h lib, zebra: Allow the specification of BUM flooding 2018-10-11 20:22:19 -04:00
zebra.conf.sample *: Remove cvs control points 2017-12-05 17:28:12 -05:00
zserv.c lib: remove frr_pthread->id 2018-09-19 22:01:46 +02:00
zserv.h zebra: dont delete pthreads from under themselves 2018-07-30 23:06:27 +00:00