Skip to content

Commit

Permalink
net/frr: bgp.volt - Integrate layout_partials/base_bootgrid_table
Browse files Browse the repository at this point in the history
  • Loading branch information
Monviech committed Jan 23, 2025
1 parent 924723f commit 1e86ed3
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 173 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,25 @@ class BgpController extends \OPNsense\Base\IndexController
public function indexAction()
{
$this->view->bgpForm = $this->getForm("bgp");

$this->view->formDialogEditBGPNeighbor = $this->getForm("dialogEditBGPNeighbor");
$this->view->formGridEditBGPNeighbor = $this->getFormGrid("dialogEditBGPNeighbor", null, "BGPChangeMessage");

$this->view->formDialogEditBGPASPaths = $this->getForm("dialogEditBGPASPath");
$this->view->formGridEditBGPASPaths = $this->getFormGrid("dialogEditBGPASPath", null, "BGPChangeMessage");

$this->view->formDialogEditBGPPrefixLists = $this->getForm("dialogEditBGPPrefixLists");
$this->view->formGridEditBGPPrefixLists = $this->getFormGrid("dialogEditBGPPrefixLists", null, "BGPChangeMessage");

$this->view->formDialogEditBGPCommunityLists = $this->getForm("dialogEditBGPCommunityLists");
$this->view->formGridEditBGPCommunityLists = $this->getFormGrid("dialogEditBGPCommunityLists", null, "BGPChangeMessage");

$this->view->formDialogEditBGPRouteMaps = $this->getForm("dialogEditBGPRouteMaps");
$this->view->formGridEditBGPRouteMaps = $this->getFormGrid("dialogEditBGPRouteMaps", null, "BGPChangeMessage");

$this->view->formDialogEditBGPPeergroups = $this->getForm("dialogEditBGPPeergroups");
$this->view->formGridEditBGPPeergroups = $this->getFormGrid("dialogEditBGPPeergroups", null, "BGPChangeMessage");

$this->view->pick('OPNsense/Quagga/bgp');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<label>Enabled</label>
<type>checkbox</type>
<help>If this AS-Path list should be enabled.</help>
<grid_view>
<width>6em</width>
<type>boolean</type>
<formatter>rowtoggle</formatter>
</grid_view>
</field>
<field>
<id>aspath.description</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<label>Enabled</label>
<type>checkbox</type>
<help>Enable / Disable</help>
<grid_view>
<width>6em</width>
<type>boolean</type>
<formatter>rowtoggle</formatter>
</grid_view>
</field>
<field>
<id>communitylist.description</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<id>neighbor.enabled</id>
<label>Enabled</label>
<type>checkbox</type>
<grid_view>
<width>6em</width>
<type>boolean</type>
<formatter>rowtoggle</formatter>
</grid_view>
</field>
<field>
<id>neighbor.description</id>
Expand All @@ -28,44 +33,69 @@
<type>text</type>
<advanced>true</advanced>
<help>Set a password for BGP authentication.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.weight</id>
<label>Weight</label>
<type>text</type>
<advanced>true</advanced>
<help>Specify a default weight value for the neighbor’s routes.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.localip</id>
<label>Local Initiater IP</label>
<type>text</type>
<advanced>true</advanced>
<help>Set the local IP connecting to the neighbor. This is only required for BGP authentication.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.updatesource</id>
<label>Update-Source Interface</label>
<type>dropdown</type>
<help><![CDATA[Physical name of the IPv4 interface facing the peer. Please refer to the <a href="http://docs.frrouting.org/en/stable-7.4/bgp.html#clicmd-[no]neighborPEERupdate-source%3CIFNAME|ADDRESS%3E">FRR documentation</a> for more information.]]></help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.linklocalinterface</id>
<label>IPv6 link-local interface</label>
<type>dropdown</type>
<advanced>true</advanced>
<help><![CDATA[Interface to use for IPv6 link-local neighbours. Please refer to the <a href="http://docs.frrouting.org/en/stable-7.4/bgp.html#clicmd-[no]neighborPEERinterfaceIFNAME">FRR documentation</a> for more information.]]></help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.nexthopself</id>
<label>Next-Hop-Self</label>
<type>checkbox</type>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.nexthopselfall</id>
<label>Next-Hop-Self All</label>
<type>checkbox</type>
<help>Add the parameter "all" after next-hop-self command.</help>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.multihop</id>
Expand All @@ -75,76 +105,128 @@
When the neighbor is not directly connected and this knob is not enabled, the session will not establish.
</help>
<type>checkbox</type>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.multiprotocol</id>
<label>Multi-Protocol</label>
<type>checkbox</type>
<advanced>true</advanced>
<help><![CDATA[Is this neighbour multiprotocol capable per <a href="https://datatracker.ietf.org/doc/html/rfc2283.html">RFC 2283</a>]]></help>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.rrclient</id>
<label>Route Reflector Client</label>
<type>checkbox</type>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.soft_reconfiguration_inbound</id>
<label>Soft reconfiguration inbound</label>
<type>checkbox</type>
<help>This option allows changing policies without clearing the BGP session.</help>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.bfd</id>
<label>BFD</label>
<type>checkbox</type>
<help>You can enable BFD support for this neighbor.</help>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.keepalive</id>
<label>Keepalive</label>
<type>text</type>
<advanced>true</advanced>
<help>Keepalive timer to check if the neighbor is still up. Default when unset is 60 seconds.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.holddown</id>
<label>Hold Down Time</label>
<type>text</type>
<advanced>true</advanced>
<help>The time in seconds when a neighbor is considered dead. This is usually 3 times the keeplive timer and when unset 180 seconds.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.connecttimer</id>
<label>Connect Timer</label>
<type>text</type>
<advanced>true</advanced>
<help>The time in seconds how fast a neighbor tries to reconnect.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.defaultoriginate</id>
<label>Send Defaultroute</label>
<type>checkbox</type>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.asoverride</id>
<label>Enable AS-Override</label>
<type>checkbox</type>
<help>Override AS number of the originating router with the local AS number. This command is only allowed for eBGP peers.</help>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.disable_connected_check</id>
<label>Disable Connected Check</label>
<type>checkbox</type>
<help>Allow peerings between directly connected eBGP peers using loopback addresses.</help>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
<visible>false</visible>
</grid_view>
</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>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>neighbor.linkedPrefixlistIn</id>
<label>Prefix-List In</label>
Expand Down Expand Up @@ -174,5 +256,8 @@
<label>Peer Group</label>
<type>dropdown</type>
<help>Peer Group this neighbor belongs to.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<id>peergroup.enabled</id>
<label>Enabled</label>
<type>checkbox</type>
<grid_view>
<width>6em</width>
<type>boolean</type>
<formatter>rowtoggle</formatter>
</grid_view>
</field>
<field>
<id>peergroup.name</id>
Expand All @@ -14,23 +19,37 @@
<id>peergroup.remoteas</id>
<label>Remote AS</label>
<type>text</type>
<help>Remote AS for tthis peergroup.</help>
<help>Remote AS for this peergroup.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>peergroup.updatesource</id>
<label>Update-Source Interface</label>
<type>dropdown</type>
<help><![CDATA[Physical name of the IPv4 interface facing the peer. Please refer to the <a href="http://docs.frrouting.org/en/stable-7.4/bgp.html#clicmd-[no]neighborPEERupdate-source%3CIFNAME|ADDRESS%3E">FRR documentation</a> for more information.]]></help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>peergroup.nexthopself</id>
<label>Next-Hop-Self</label>
<type>checkbox</type>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
</grid_view>
</field>
<field>
<id>peergroup.defaultoriginate</id>
<label>Send Defaultroute</label>
<type>checkbox</type>
<grid_view>
<type>boolean</type>
<formatter>boolean</formatter>
</grid_view>
</field>
<field>
<id>peergroup.linkedPrefixlistIn</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<label>Enabled</label>
<type>checkbox</type>
<help>If this Prefix-List should be enabled.</help>
<grid_view>
<width>6em</width>
<type>boolean</type>
<formatter>rowtoggle</formatter>
</grid_view>
</field>
<field>
<id>prefixlist.description</id>
Expand All @@ -22,6 +27,9 @@
<label>IP Version</label>
<type>dropdown</type>
<help>Set the IP version to use.</help>
<grid_view>
<visible>false</visible>
</grid_view>
</field>
<field>
<id>prefixlist.seqnumber</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
<label>Enabled</label>
<type>checkbox</type>
<help>Enable / Disable</help>
<grid_view>
<width>6em</width>
<type>boolean</type>
<formatter>rowtoggle</formatter>
</grid_view>
</field>
<field>
<id>routemap.description</id>
Expand Down
Loading

0 comments on commit 1e86ed3

Please sign in to comment.