{% 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 %} {
protocol bgp {{ peer.name }}_v4 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.multiprotocol is defined %}_v6{% endif %} {
protocol bgp {{ peer.name }}{% if not peer.multiprotocol is defined %}_v6{% endif %} from dnpeers{% if not peer.multiprotocol is defined %}_v6{% endif %} {
# if you use link-local ipv6 addresses for peering using the following