add RPKI, maximum-prefix, nexthop-self, and BGP passwords
This commit is contained in:
parent
4fddfa33ca
commit
4f85fe97ab
18
vyos.conf.j2
18
vyos.conf.j2
@ -245,6 +245,7 @@ protocols {
|
||||
{% for neighbor, neighbor_data in as_data.get('neighbor',{}).items() %}
|
||||
neighbor {{ neighbor }} {
|
||||
remote-as {{ neighbor_data['remote-as'] }}
|
||||
{% if 'password' in neighbor_data %}password {{ neighbor_data['password'] }}{% endif %}
|
||||
{% if 'update-source' in neighbor_data %}update-source {{ neighbor_data['update-source'] }}{% endif %}
|
||||
{% if 'ebgp-multihop' in neighbor_data %}ebgp-multihop {{ neighbor_data['ebgp-multihop'] }}{% endif %}
|
||||
|
||||
@ -276,6 +277,12 @@ protocols {
|
||||
{# neighbor_data['address-family']['ipv4-unicast']['allowas-in'] #}
|
||||
}
|
||||
{% endif %}
|
||||
{% if neighbor_data['address-family']['ipv4-unicast'].get('nexthop-self',False) %}
|
||||
nexthop-self
|
||||
{% endif %}
|
||||
{% if neighbor_data['address-family']['ipv4-unicast'].get('maximum-prefix',None) != None %}
|
||||
maximum-prefix {{ neighbor_data['address-family']['ipv4-unicast'].get('maximum-prefix',None) }}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
{% if 'ipv6-unicast' in neighbor_data['address-family'] %}
|
||||
@ -304,6 +311,12 @@ protocols {
|
||||
{# neighbor_data['address-family']['ipv6-unicast']['allowas-in'] #}
|
||||
}
|
||||
{% endif %}
|
||||
{% if neighbor_data['address-family']['ipv6-unicast'].get('nexthop-self',False) %}
|
||||
nexthop-self
|
||||
{% endif %}
|
||||
{% if neighbor_data['address-family']['ipv6-unicast'].get('maximum-prefix',None) != None %}
|
||||
maximum-prefix {{ neighbor_data['address-family']['ipv6-unicast'].get('maximum-prefix',None) }}
|
||||
{% endif %}
|
||||
}
|
||||
{% endif %}
|
||||
}
|
||||
@ -808,8 +821,11 @@ policy {
|
||||
community-list {{ group['match-community'] }}
|
||||
}
|
||||
{% endif %}
|
||||
{% if 'match-rpki' in group %}
|
||||
rpki {{ group['match-rpki'] }}
|
||||
{% endif %}
|
||||
}
|
||||
action permit
|
||||
action {{ group.get('action','permit') }}
|
||||
{% if 'on-match' in group %}
|
||||
on-match {
|
||||
{{ group['on-match'] }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user