mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/frr Adding the multihop option for bgp within the frr plugin.
This commit is contained in:
committed by
Franco Fichtner
parent
85ff6ca821
commit
1f42d0deef
@@ -47,6 +47,7 @@ class BgpController extends ApiMutableModelControllerBase
|
||||
"remoteas",
|
||||
"updatesource",
|
||||
"nexthopself",
|
||||
"multihop",
|
||||
"defaultoriginate",
|
||||
"linkedPrefixlistIn",
|
||||
"linkedPrefixlistOut",
|
||||
|
||||
+5
@@ -26,6 +26,11 @@
|
||||
<id>neighbor.nexthopself</id>
|
||||
<label>Next-Hop-Self</label>
|
||||
<type>checkbox</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>neighbor.multihop</id>
|
||||
<label>Multi-Hop</label>
|
||||
<type>checkbox</type>
|
||||
</field>
|
||||
<field>
|
||||
<id>neighbor.defaultoriginate</id>
|
||||
|
||||
@@ -62,6 +62,10 @@
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</nexthopself>
|
||||
<multihop type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</multihop>
|
||||
<defaultoriginate type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -54,6 +54,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
<th data-column-id="remoteas" data-type="string" data-visible="true">{{ lang._('Remote AS') }}</th>
|
||||
<th data-column-id="updatesource" data-type="string" data-visible="true">{{ lang._('Update Source Address') }}</th>
|
||||
<th data-column-id="nexthopself" data-type="string" data-formatter="rowtoggle">{{ lang._('Next Hop Self') }}</th>
|
||||
<th data-column-id="multihop" data-type="string" data-formatter="rowtoggle">{{ lang._('Multi Hop') }}</th>
|
||||
<th data-column-id="defaultoriginate" data-type="string" data-formatter="rowtoggle">{{ lang._('Default Originate') }}</th>
|
||||
<th data-column-id="linkedPrefixlistIn" data-type="string" data-visible="true">{{ lang._('Prefix List inbound') }}</th>
|
||||
<th data-column-id="linkedPrefixlistOut" data-type="string" data-visible="true">{{ lang._('Prefix List outbound') }}</th>
|
||||
|
||||
@@ -27,6 +27,9 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
|
||||
{% if 'updatesource' in neighbor and neighbor.updatesource != '' %}
|
||||
neighbor {{ neighbor.address }} update-source {{ physical_interface(neighbor.updatesource) }}
|
||||
{% endif %}
|
||||
{% if 'multihop' in neighbor and neighbor.multihop == '1' %}
|
||||
neighbor {{ neighbor.address }} ebgp-multihop
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user