mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/frr: Add BGP allowas-in (#4610)
This commit is contained in:
@@ -14,6 +14,7 @@ Plugin Changelog
|
||||
|
||||
1.44
|
||||
|
||||
* Add BGP allowas-in (opnsense/plugins/issues/4586)
|
||||
* Add route-map functionality to route redistribution in bgp (opnsense/plugins/issues/4570)
|
||||
* Add route-map functionality to route redistribution in ospf/ospf6 (opnsense/plugins/issues/4580)
|
||||
* Add BGP remote-as internal and external (opnsense/plugins/issues/4609)
|
||||
|
||||
+9
@@ -217,6 +217,15 @@
|
||||
<visible>false</visible>
|
||||
</grid_view>
|
||||
</field>
|
||||
<field>
|
||||
<id>neighbor.allowas_in</id>
|
||||
<label>Allow AS In</label>
|
||||
<type>dropdown</type>
|
||||
<help>Accept incoming routes with AS path containing AS number with the same value as the current system AS.</help>
|
||||
<grid_view>
|
||||
<visible>false</visible>
|
||||
</grid_view>
|
||||
</field>
|
||||
<field>
|
||||
<id>neighbor.disable_connected_check</id>
|
||||
<label>Disable Connected Check</label>
|
||||
|
||||
@@ -143,6 +143,21 @@
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</asoverride>
|
||||
<allowas_in type="OptionField">
|
||||
<OptionValues>
|
||||
<val1 value="1">1</val1>
|
||||
<val2 value="2">2</val2>
|
||||
<val3 value="3">3</val3>
|
||||
<val4 value="4">4</val4>
|
||||
<val5 value="5">5</val5>
|
||||
<val6 value="6">6</val6>
|
||||
<val7 value="7">7</val7>
|
||||
<val8 value="8">8</val8>
|
||||
<val9 value="9">9</val9>
|
||||
<val10 value="10">10</val10>
|
||||
<origin>origin</origin>
|
||||
</OptionValues>
|
||||
</allowas_in>
|
||||
<disable_connected_check type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -176,6 +176,9 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
|
||||
{% if 'asoverride' in neighbor and neighbor.asoverride == '1' %}
|
||||
neighbor {{ neighbor.address }} as-override
|
||||
{% endif %}
|
||||
{% if 'allowas_in' in neighbor and neighbor.allowas_in %}
|
||||
neighbor {{ neighbor.address }} allowas-in {{ neighbor.allowas_in }}
|
||||
{% endif %}
|
||||
{% if neighbor.linkedPrefixlistIn|default("") != "" %}
|
||||
{% for prefixlist in neighbor.linkedPrefixlistIn.split(",") %}
|
||||
{% set prefixlist2_data = helpers.getUUID(prefixlist) %}
|
||||
|
||||
Reference in New Issue
Block a user