mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-16 13:49:16 +00:00
bgpd: fix compile error for BSD platforms
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
This commit is contained in:
parent
361a62ac9d
commit
96db4340b7
@ -9986,7 +9986,7 @@ DEFPY (show_bgp_srv6,
|
|||||||
char buf_tovpn6_sid[256];
|
char buf_tovpn6_sid[256];
|
||||||
|
|
||||||
bgp = bgp_get_default();
|
bgp = bgp_get_default();
|
||||||
if (!bgp || !bgp->srv6_locator_name)
|
if (!bgp)
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
|
|
||||||
vty_out(vty, "locator_name: %s\n", bgp->srv6_locator_name);
|
vty_out(vty, "locator_name: %s\n", bgp->srv6_locator_name);
|
||||||
@ -18045,7 +18045,7 @@ int bgp_config_write(struct vty *vty)
|
|||||||
|
|
||||||
if (bgp->srv6_enabled) {
|
if (bgp->srv6_enabled) {
|
||||||
vty_frame(vty, " !\n segment-routing srv6\n");
|
vty_frame(vty, " !\n segment-routing srv6\n");
|
||||||
if (bgp->srv6_locator_name)
|
if (strlen(bgp->srv6_locator_name))
|
||||||
vty_out(vty, " locator %s\n",
|
vty_out(vty, " locator %s\n",
|
||||||
bgp->srv6_locator_name);
|
bgp->srv6_locator_name);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user