diff options
author | Chirag Shah <chirag@nvidia.com> | 2020-08-12 22:30:24 +0200 |
---|---|---|
committer | Chirag Shah <chirag@nvidia.com> | 2020-10-03 20:25:37 +0200 |
commit | ff8a8a7ac10b3211d5586c29dfcc5a3b32841029 (patch) | |
tree | 3a6354d31147a423a90c05a6abb3a48fcfde83a5 /bgpd/bgp_nb.h | |
parent | bgpd: register northbound callbacks to bootstrap (diff) | |
download | frr-ff8a8a7ac10b3211d5586c29dfcc5a3b32841029.tar.xz frr-ff8a8a7ac10b3211d5586c29dfcc5a3b32841029.zip |
bgpd: convert global config to transactional cli
Convert global congigurations clis to transactional
clis using northbound plugin callbacks.
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'bgpd/bgp_nb.h')
-rw-r--r-- | bgpd/bgp_nb.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/bgpd/bgp_nb.h b/bgpd/bgp_nb.h index ecfdf987d..2bed6bcfe 100644 --- a/bgpd/bgp_nb.h +++ b/bgpd/bgp_nb.h @@ -3406,4 +3406,72 @@ int routing_control_plane_protocols_control_plane_protocol_bgp_peer_groups_peer_ struct nb_cb_modify_args *args); int routing_control_plane_protocols_control_plane_protocol_bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_flowspec_soft_reconfiguration_modify( struct nb_cb_modify_args *args); + +/* Optional 'cli_show' callbacks. */ +void cli_show_router_bgp(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_router_id(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_route_selection(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_ebgp_requires_policy(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_default_shutdown(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_import_check(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_show_hostname(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_show_nexthop_hostname(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_fast_external_failover(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_global_neighbor_config(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_global_update_group_config_subgroup_pkt_queue_size( + struct vty *vty, struct lyd_node *dnode, bool show_defaults); +void cli_show_router_global_update_group_config_coalesce_time( + struct vty *vty, struct lyd_node *dnode, bool show_defaults); +void cli_show_router_global_ebgp_multihop_connected_route_check( + struct vty *vty, struct lyd_node *dnode, bool show_defaults); +void cli_show_router_bgp_local_pref(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_route_reflector(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_confederation_identifier(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_confederation_member_as(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_graceful_shutdown(struct vty *vty, + struct lyd_node *dnode, + bool show_defaults); +void cli_show_router_bgp_med_config(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); + +void routing_control_plane_protocols_control_plane_protocol_bgp_global_route_selection_options_apply_finish( + struct nb_cb_apply_finish_args *args); +void routing_control_plane_protocols_control_plane_protocol_bgp_global_med_config_apply_finish( + struct nb_cb_apply_finish_args *args); + +/* xpath macros */ +/* route-list */ +#define FRR_BGP_GLOBAL_XPATH \ + "/frr-routing:routing/control-plane-protocols/" \ + "control-plane-protocol[type='%s'][name='%s'][vrf='%s']/" \ + "frr-bgp:bgp/global" + +#define FRR_BGP_GLOBAL_AS_XPATH \ + "/frr-routing:routing/control-plane-protocols/" \ + "control-plane-protocol[type='%s'][name='%s'][vrf='%s']/" \ + "frr-bgp:bgp/local-as[" + #endif |