summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-02-20 18:25:15 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-02-28 18:49:43 +0100
commite84c59af5bcdcc80112bae4937fdeaa10bb95bbc (patch)
tree44c7a1f033854ea5c6af437b4bd9f1f84053e697 /bgpd/bgp_vty.h
parentMerge pull request #8166 from donaldsharp/ospfv3_info (diff)
downloadfrr-e84c59af5bcdcc80112bae4937fdeaa10bb95bbc.tar.xz
frr-e84c59af5bcdcc80112bae4937fdeaa10bb95bbc.zip
bgpd: Activate ipv6-unicast for peer automatically if globally defined
When you use a single BGP session for both IPv4 and IPv6 it's a bit annoying going into ipv6 address-family and explicitly activating it. Let's get this automatically if enabled with `bgp default ipv6-unicast`. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r--bgpd/bgp_vty.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h
index 85619dd07..251bdc3fe 100644
--- a/bgpd/bgp_vty.h
+++ b/bgpd/bgp_vty.h
@@ -205,9 +205,9 @@ extern int peer_local_interface_cfg(struct bgp *bgp, const char *ip_str,
const char *str, char *errmsg,
size_t errmsg_len);
extern int peer_conf_interface_create(struct bgp *bgp, const char *conf_if,
- afi_t afi, safi_t safi, bool v6only,
- const char *peer_group_name, int as_type,
- as_t as, char *errmsg, size_t errmsg_len);
+ bool v6only, const char *peer_group_name,
+ int as_type, as_t as, char *errmsg,
+ size_t errmsg_len);
extern int peer_flag_modify_nb(struct bgp *bgp, const char *ip_str,
struct peer *peer, uint32_t flag, bool set,
char *errmsg, size_t errmsg_len);