net/frr: Added attribute-unchanged option (#3112)

This commit is contained in:
Patrik Kernstock
2023-01-17 16:08:25 +01:00
committed by GitHub
parent 8a1610e105
commit 5a7c598321
3 changed files with 19 additions and 0 deletions
@@ -132,6 +132,13 @@
<type>checkbox</type>
<help>Allow peerings between directly connected eBGP peers using loopback addresses.</help>
</field>
<field>
<id>neighbor.attributeunchanged</id>
<label>Attribute Unchanged</label>
<type>dropdown</type>
<advanced>true</advanced>
<help><![CDATA[This specifies attributes to be left unchanged when sending advertisements to a peer. Read more at <a href="https://docs.frrouting.org/en/latest/bgp.html#clicmd-neighbor-PEER-attribute-unchanged-as-path-next-hop-med">FRR documentation</a>.]]></help>
</field>
<field>
<id>neighbor.linkedPrefixlistIn</id>
<label>Prefix-List In</label>
@@ -142,6 +142,15 @@
<default>0</default>
<Required>N</Required>
</disable_connected_check>
<attributeunchanged type="OptionField">
<default></default>
<Required>N</Required>
<OptionValues>
<as-path>as-path</as-path>
<next-hop>next-hop</next-hop>
<med>med</med>
</OptionValues>
</attributeunchanged>
<linkedPrefixlistIn type="ModelRelationField">
<Model>
<template>
@@ -89,6 +89,9 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
{% if 'connecttimer' in neighbor and neighbor.connecttimer != '' %}
neighbor {{ neighbor.address }} timers connect {{ neighbor.connecttimer }}
{% endif %}
{% if 'attributeunchanged' in neighbor and neighbor.attributeunchanged != '' %}
neighbor {{ neighbor.address }} attribute-unchanged {{ neighbor.attributeunchanged }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}