2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-01-29 18:38:03 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Cumulus Networks, Inc.
|
|
|
|
* Chirag Shah
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <zebra.h>
|
2022-11-08 17:59:33 +01:00
|
|
|
#include "interface.h"
|
2020-01-29 18:38:03 +01:00
|
|
|
#include "northbound.h"
|
|
|
|
#include "libfrr.h"
|
|
|
|
#include "zebra_nb.h"
|
|
|
|
|
|
|
|
/* clang-format off */
|
|
|
|
const struct frr_yang_module_info frr_zebra_info = {
|
|
|
|
.name = "frr-zebra",
|
|
|
|
.nodes = {
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/mcast-rpf-lookup",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_mcast_rpf_lookup_modify,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/ip-forwarding",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_ip_forwarding_modify,
|
|
|
|
.destroy = zebra_ip_forwarding_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/ipv6-forwarding",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_ipv6_forwarding_modify,
|
|
|
|
.destroy = zebra_ipv6_forwarding_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/workqueue-hold-timer",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_workqueue_hold_timer_modify,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/zapi-packets",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_zapi_packets_modify,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/import-kernel-table/table-id",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_import_kernel_table_table_id_modify,
|
|
|
|
.destroy = zebra_import_kernel_table_table_id_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/import-kernel-table/distance",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_import_kernel_table_distance_modify,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/import-kernel-table/route-map",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_import_kernel_table_route_map_modify,
|
|
|
|
.destroy = zebra_import_kernel_table_route_map_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/allow-external-route-update",
|
|
|
|
.cbs = {
|
|
|
|
.create = zebra_allow_external_route_update_create,
|
|
|
|
.destroy = zebra_allow_external_route_update_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/dplane-queue-limit",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_dplane_queue_limit_modify,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-events",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_events_modify,
|
|
|
|
.destroy = zebra_debugs_debug_events_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-zapi-send",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_zapi_send_modify,
|
|
|
|
.destroy = zebra_debugs_debug_zapi_send_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-zapi-recv",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_zapi_recv_modify,
|
|
|
|
.destroy = zebra_debugs_debug_zapi_recv_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-zapi-detail",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_zapi_detail_modify,
|
|
|
|
.destroy = zebra_debugs_debug_zapi_detail_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-kernel",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_kernel_modify,
|
|
|
|
.destroy = zebra_debugs_debug_kernel_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-kernel-msg-send",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_kernel_msg_send_modify,
|
|
|
|
.destroy = zebra_debugs_debug_kernel_msg_send_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-kernel-msg-recv",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_kernel_msg_recv_modify,
|
|
|
|
.destroy = zebra_debugs_debug_kernel_msg_recv_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-rib",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_rib_modify,
|
|
|
|
.destroy = zebra_debugs_debug_rib_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-rib-detail",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_rib_detail_modify,
|
|
|
|
.destroy = zebra_debugs_debug_rib_detail_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-fpm",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_fpm_modify,
|
|
|
|
.destroy = zebra_debugs_debug_fpm_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-nht",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_nht_modify,
|
|
|
|
.destroy = zebra_debugs_debug_nht_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-nht-detail",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_nht_detail_modify,
|
|
|
|
.destroy = zebra_debugs_debug_nht_detail_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-mpls",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_mpls_modify,
|
|
|
|
.destroy = zebra_debugs_debug_mpls_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-vxlan",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_vxlan_modify,
|
|
|
|
.destroy = zebra_debugs_debug_vxlan_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-pw",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_pw_modify,
|
|
|
|
.destroy = zebra_debugs_debug_pw_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-dplane",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_dplane_modify,
|
|
|
|
.destroy = zebra_debugs_debug_dplane_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-dplane-detail",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_dplane_detail_modify,
|
|
|
|
.destroy = zebra_debugs_debug_dplane_detail_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:zebra/debugs/debug-mlag",
|
|
|
|
.cbs = {
|
|
|
|
.modify = zebra_debugs_debug_mlag_modify,
|
|
|
|
.destroy = zebra_debugs_debug_mlag_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-route-information",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_route_information_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-v6-mroute-info",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_v6_mroute_info_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-vrf-info",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_vrf_info_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-vrf-vni-info",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_vrf_vni_info_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-evpn-info",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_evpn_info_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-vni-info",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_vni_info_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-evpn-vni-rmac",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_evpn_vni_rmac_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-evpn-vni-nexthops",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_evpn_vni_nexthops_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:clear-evpn-dup-addr",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = clear_evpn_dup_addr_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-evpn-macs",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_evpn_macs_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-evpn-arp-cache",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_evpn_arp_cache_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-pbr-ipset",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_pbr_ipset_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-pbr-iptable",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_pbr_iptable_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-zebra:get-debugs",
|
|
|
|
.cbs = {
|
|
|
|
.rpc = get_debugs_rpc,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-02-20 03:48:47 +01:00
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/ip-addrs",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-02-20 03:48:47 +01:00
|
|
|
.create = lib_interface_zebra_ip_addrs_create,
|
|
|
|
.destroy = lib_interface_zebra_ip_addrs_destroy,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-02-20 03:48:47 +01:00
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/ip-addrs/label",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-02-20 03:48:47 +01:00
|
|
|
.modify = lib_interface_zebra_ip_addrs_label_modify,
|
|
|
|
.destroy = lib_interface_zebra_ip_addrs_label_destroy,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-02-20 03:48:47 +01:00
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/ip-addrs/ip4-peer",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-02-20 03:48:47 +01:00
|
|
|
.modify = lib_interface_zebra_ip_addrs_ip4_peer_modify,
|
|
|
|
.destroy = lib_interface_zebra_ip_addrs_ip4_peer_destroy,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/multicast",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_multicast_modify,
|
|
|
|
.destroy = lib_interface_zebra_multicast_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/link-detect",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_link_detect_modify,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/shutdown",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_shutdown_modify,
|
|
|
|
.destroy = lib_interface_zebra_shutdown_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/bandwidth",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_bandwidth_modify,
|
|
|
|
.destroy = lib_interface_zebra_bandwidth_destroy,
|
|
|
|
}
|
|
|
|
},
|
2023-07-09 21:44:03 +02:00
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/mpls",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_mpls_modify,
|
|
|
|
.destroy = lib_interface_zebra_mpls_destroy,
|
|
|
|
}
|
|
|
|
},
|
2022-11-08 17:59:33 +01:00
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/bandwidth",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_bandwidth_modify,
|
|
|
|
.destroy = lib_interface_zebra_bandwidth_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/link-params/legacy-admin-group",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_legacy_admin_group_modify,
|
|
|
|
.destroy = lib_interface_zebra_legacy_admin_group_destroy,
|
|
|
|
.cli_show = cli_show_legacy_admin_group,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/link-params/affinities",
|
|
|
|
.cbs = {
|
|
|
|
.cli_show = cli_show_affinity,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/link-params/affinities/affinity",
|
|
|
|
.cbs = {
|
|
|
|
.create = lib_interface_zebra_affinity_create,
|
|
|
|
.destroy = lib_interface_zebra_affinity_destroy,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/link-params/affinity-mode",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_interface_zebra_affinity_mode_modify,
|
|
|
|
.cli_show = cli_show_affinity_mode,
|
|
|
|
},
|
|
|
|
},
|
2020-02-20 03:48:47 +01:00
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/up-count",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_up_count_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/down-count",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_down_count_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/zif-type",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_zif_type_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/ptm-status",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_ptm_status_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/vlan-id",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_vlan_id_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/vni-id",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_vni_id_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/remote-vtep",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_remote_vtep_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-interface:lib/interface/frr-zebra:zebra/state/mcast-group",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_interface_zebra_state_mcast_group_get_elem,
|
|
|
|
}
|
|
|
|
},
|
2020-01-29 18:38:03 +01:00
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_next = lib_vrf_zebra_ribs_rib_get_next,
|
|
|
|
.get_keys = lib_vrf_zebra_ribs_rib_get_keys,
|
|
|
|
.lookup_entry = lib_vrf_zebra_ribs_rib_lookup_entry,
|
2023-10-20 10:53:05 +02:00
|
|
|
.lookup_next = lib_vrf_zebra_ribs_rib_lookup_next,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
2021-03-14 23:11:15 +01:00
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/afi-safi-name",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_afi_safi_name_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/table-id",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_table_id_get_elem,
|
|
|
|
}
|
|
|
|
},
|
2020-01-29 18:38:03 +01:00
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_next = lib_vrf_zebra_ribs_rib_route_get_next,
|
|
|
|
.get_keys = lib_vrf_zebra_ribs_rib_route_get_keys,
|
|
|
|
.lookup_entry = lib_vrf_zebra_ribs_rib_route_lookup_entry,
|
2023-10-20 10:53:05 +02:00
|
|
|
.lookup_next = lib_vrf_zebra_ribs_rib_route_lookup_next,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/prefix",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_prefix_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_next = lib_vrf_zebra_ribs_rib_route_route_entry_get_next,
|
|
|
|
.get_keys = lib_vrf_zebra_ribs_rib_route_route_entry_get_keys,
|
|
|
|
.lookup_entry = lib_vrf_zebra_ribs_rib_route_route_entry_lookup_entry,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/protocol",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_protocol_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/instance",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_instance_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/distance",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_distance_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/metric",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_metric_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/tag",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_tag_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/selected",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_selected_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/installed",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_installed_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/failed",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_failed_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/queued",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_queued_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/internal-flags",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_internal_flags_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/internal-status",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_internal_status_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-03-16 20:09:26 +01:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/uptime",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
2020-03-16 20:09:26 +01:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_uptime_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/id",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_id_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_next = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_get_next,
|
|
|
|
.get_keys = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_get_keys,
|
|
|
|
.lookup_entry = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_lookup_entry,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/nh-type",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_nh_type_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/vrf",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_vrf_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/gateway",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_gateway_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/interface",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_interface_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/bh-type",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_bh_type_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/onlink",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_onlink_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
2020-02-14 15:49:25 +01:00
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/srte-color",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_color_get_elem,
|
|
|
|
}
|
|
|
|
},
|
2023-07-26 17:58:03 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/srv6-segs-stack/entry",
|
|
|
|
.cbs = {
|
|
|
|
.get_next = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_srv6_segs_stack_entry_get_next,
|
|
|
|
.get_keys = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_srv6_segs_stack_entry_get_keys,
|
|
|
|
.lookup_entry = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_srv6_segs_stack_entry_lookup_entry,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/srv6-segs-stack/entry/id",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_srv6_segs_stack_entry_id_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/srv6-segs-stack/entry/seg",
|
|
|
|
.cbs = {
|
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_srv6_segs_stack_entry_seg_get_elem,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-01-29 18:38:03 +01:00
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/mpls-label-stack/entry",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_next = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_get_next,
|
|
|
|
.get_keys = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_get_keys,
|
|
|
|
.lookup_entry = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_lookup_entry,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/mpls-label-stack/entry/id",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_id_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/mpls-label-stack/entry/label",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_label_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/mpls-label-stack/entry/ttl",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_ttl_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/mpls-label-stack/entry/traffic-class",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_mpls_label_stack_entry_traffic_class_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/duplicate",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_duplicate_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/recursive",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_recursive_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/active",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_active_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/fib",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_fib_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/ribs/rib/route/route-entry/nexthop-group/nexthop/weight",
|
2020-01-29 18:38:03 +01:00
|
|
|
.cbs = {
|
zebra: rib nb changes with redefined nexthop model
RIB operational northbound changes based on redfined
nexthop model.
Testing Done:
{
"afi-safi-name": "ipv4-unicast",
"table-id": 254,
"route": [
{
"prefix": "0.0.0.0/0",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 100,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139797Z",
"nexthop-group": {
"id": 15,
"nexthop": [
{
"nh-type": "ip4-ifindex",
"vrf": "0",
"gateway": "10.0.2.2",
"interface": "enp0s3",
"active": [null],
"fib": [null]
}
]
}
}
]
},
{
"prefix": "1.1.1.4/32",
"route-entry": [
{
"protocol": "kernel",
"distance": 0,
"metric": 0,
"selected": [null],
"installed": [null],
"internal-flags": 8,
"internal-status": 16,
"uptime": "2020-06-06T00:28:26.139790Z",
"nexthop-group": {
"id": 16,
"nexthop": [
{
"nh-type": "ifindex",
"vrf": "0",
"gateway": "",
"interface": "dummy4",
"active": [null],
"fib": [null]
}
]
}
}
]
}
]
}
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-06-06 00:45:12 +02:00
|
|
|
.get_elem = lib_vrf_zebra_ribs_rib_route_route_entry_nexthop_group_nexthop_weight_get_elem,
|
2020-01-29 18:38:03 +01:00
|
|
|
}
|
|
|
|
},
|
2020-07-14 23:23:48 +02:00
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/l3vni-id",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_vrf_zebra_l3vni_id_modify,
|
|
|
|
.destroy = lib_vrf_zebra_l3vni_id_destroy,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.xpath = "/frr-vrf:lib/vrf/frr-zebra:zebra/prefix-only",
|
|
|
|
.cbs = {
|
|
|
|
.modify = lib_vrf_zebra_prefix_only_modify,
|
|
|
|
}
|
|
|
|
},
|
2020-01-29 18:38:03 +01:00
|
|
|
{
|
|
|
|
.xpath = NULL,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|