From 4b90bd4aa4ad497ad51339998b5e23bf1e4d0e09 Mon Sep 17 00:00:00 2001 From: Simeon Keske Date: Sun, 24 May 2020 20:19:52 +0200 Subject: [PATCH] rename peer.bgp4o6 attribute to peer.multiprotocol --- templates/bird2/peer.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/bird2/peer.conf.j2 b/templates/bird2/peer.conf.j2 index cbbd9db..3cf289e 100644 --- a/templates/bird2/peer.conf.j2 +++ b/templates/bird2/peer.conf.j2 @@ -1,11 +1,11 @@ -{% if peer.v4 is defined and not peer.bgp4o6 is defined %} -protocol bgp {{ peer.name }} from dnpeers{% if not peer.bgp4o6 is defined %}_v4{% endif %} { +{% if peer.v4 is defined and not peer.multiprotocol is defined %} +protocol bgp {{ peer.name }} from dnpeers{% if not peer.multiprotocol is defined %}_v4{% endif %} { neighbor {{ peer.v4 }} as {{ peer.as }}; }; {% endif %} {% if peer.v6 is defined %} -protocol bgp {{ peer.name }}_v6 from dnpeers{% if not peer.bgp4o6 is defined %}_v6{% endif %} { +protocol bgp {{ peer.name }}_v6 from dnpeers{% if not peer.multiprotocol is defined %}_v6{% endif %} { # if you use link-local ipv6 addresses for peering using the following neighbor {{ peer.v6 }}%{{ peer.if.name | default('dn42_' + peer.name) }} as {{ peer.as }}; {% if peer.debug is defined %}