mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 11:48:50 +00:00
bgpd: Have bgp notice the zebra ability to use v6_with_v4_nexthops
Store the data. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
68f52d7a0c
commit
052debc3ee
@ -3455,6 +3455,11 @@ static bool bgp_zebra_label_manager_connect(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void bgp_zebra_capabilities(struct zclient_capabilities *cap)
|
||||
{
|
||||
bm->v6_with_v4_nexthops = cap->v6_with_v4_nexthop;
|
||||
}
|
||||
|
||||
void bgp_zebra_init(struct event_loop *master, unsigned short instance)
|
||||
{
|
||||
struct zclient_options options = zclient_options_default;
|
||||
@ -3470,6 +3475,7 @@ void bgp_zebra_init(struct event_loop *master, unsigned short instance)
|
||||
array_size(bgp_handlers));
|
||||
zclient_init(zclient, ZEBRA_ROUTE_BGP, 0, &bgpd_privs);
|
||||
zclient->zebra_connected = bgp_zebra_connected;
|
||||
zclient->zebra_capabilities = bgp_zebra_capabilities;
|
||||
zclient->instance = instance;
|
||||
|
||||
/* Initialize special zclient for synchronous message exchanges. */
|
||||
|
@ -168,6 +168,8 @@ struct bgp_master {
|
||||
struct event *t_bgp_sync_label_manager;
|
||||
struct event *t_bgp_start_label_manager;
|
||||
|
||||
bool v6_with_v4_nexthops;
|
||||
|
||||
QOBJ_FIELDS;
|
||||
};
|
||||
DECLARE_QOBJ_TYPE(bgp_master);
|
||||
|
Loading…
Reference in New Issue
Block a user