Improve visibility for route-maps and prefix-lists in OSPF/OSPF6 and enable internalModelUseSafeDelete

This commit is contained in:
Monviech 2026-05-21 14:17:30 +02:00
parent 6333186c95
commit 23cca9c68b
9 changed files with 33 additions and 31 deletions

View file

@ -37,6 +37,7 @@ class Ospf6settingsController extends ApiMutableModelControllerBase
{
protected static $internalModelName = 'ospf6';
protected static $internalModelClass = '\OPNsense\Quagga\OSPF6';
protected static $internalModelUseSafeDelete = true;
public function searchNetworkAction()
{

View file

@ -36,6 +36,7 @@ class OspfsettingsController extends ApiMutableModelControllerBase
{
protected static $internalModelName = 'ospf';
protected static $internalModelClass = '\OPNsense\Quagga\OSPF';
protected static $internalModelUseSafeDelete = true;
public function searchNeighborAction()
{

View file

@ -40,7 +40,7 @@
<id>network.linkedPrefixlistIn</id>
<label>Prefix-List In</label>
<type>dropdown</type>
<help>Filters inbound route advertisements using a prefix list.</help>
<help>Filters inbound route advertisements using a prefix list. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
<grid_view>
<visible>false</visible>
</grid_view>
@ -49,7 +49,7 @@
<id>network.linkedPrefixlistOut</id>
<label>Prefix-List Out</label>
<type>dropdown</type>
<help>Filters outbound route advertisements using a prefix list.</help>
<help>Filters outbound route advertisements using a prefix list. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
<grid_view>
<visible>false</visible>
</grid_view>

View file

@ -32,7 +32,7 @@
<label>Prefix List</label>
<type>select_multiple</type>
<allownew>true</allownew>
<help>Allows for matching based on prefix lists, multiple selections enabled.</help>
<help>Allows for matching based on prefix lists, multiple selections enabled. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
</field>
<field>
<id>routemap.set</id>

View file

@ -40,7 +40,7 @@
<id>network.linkedPrefixlistIn</id>
<label>Prefix-List In</label>
<type>dropdown</type>
<help>Filters inbound route advertisements using a prefix list.</help>
<help>Filters inbound route advertisements using a prefix list. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
<grid_view>
<visible>false</visible>
</grid_view>
@ -49,7 +49,7 @@
<id>network.linkedPrefixlistOut</id>
<label>Prefix-List Out</label>
<type>dropdown</type>
<help>Filters outbound route advertisements using a prefix list.</help>
<help>Filters outbound route advertisements using a prefix list. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
<grid_view>
<visible>false</visible>
</grid_view>

View file

@ -32,7 +32,7 @@
<label>Prefix List</label>
<type>select_multiple</type>
<allownew>true</allownew>
<help>Allows for matching based on prefix lists, multiple selections enabled.</help>
<help>Allows for matching based on prefix lists, multiple selections enabled. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
</field>
<field>
<id>routemap.set</id>

View file

@ -19,7 +19,7 @@
<id>redistribution.linkedRoutemap</id>
<label>Route-Map</label>
<type>dropdown</type>
<help>Optional Route-map to apply to this redistribution.</help>
<help>Optional Route-map to apply to this redistribution. If multiple items with the same name exist, choosing one of them will apply all items with the same name.</help>
</field>
<field>
<id>redistribution.description</id>

View file

@ -97,23 +97,23 @@
<arearange type="NetworkField"/>
<linkedPrefixlistIn type="ModelRelationField">
<Model>
<template>
<prefixlists>
<source>OPNsense.quagga.ospf</source>
<items>prefixlists.prefixlist</items>
<display>name</display>
<group>name</group>
</template>
<display>name,seqnumber</display>
<display_format>%s:%s</display_format>
</prefixlists>
</Model>
<ValidationMessage>Related Prefix-List item not found.</ValidationMessage>
</linkedPrefixlistIn>
<linkedPrefixlistOut type="ModelRelationField">
<Model>
<template>
<prefixlists>
<source>OPNsense.quagga.ospf</source>
<items>prefixlists.prefixlist</items>
<display>name</display>
<group>name</group>
</template>
<display>name,seqnumber</display>
<display_format>%s:%s</display_format>
</prefixlists>
</Model>
<ValidationMessage>Related Prefix-List item not found.</ValidationMessage>
</linkedPrefixlistOut>
@ -308,12 +308,12 @@
</redistribute>
<linkedRoutemap type="ModelRelationField">
<Model>
<template>
<routemaps>
<source>OPNsense.quagga.ospf</source>
<items>routemaps.routemap</items>
<display>name</display>
<group>name</group>
</template>
<display>name,id</display>
<display_format>%s:%s</display_format>
</routemaps>
</Model>
<ValidationMessage>Related Route-Map item not found.</ValidationMessage>
</linkedRoutemap>

View file

@ -54,23 +54,23 @@
<arearange type="TextField"/>
<linkedPrefixlistIn type="ModelRelationField">
<Model>
<template>
<prefixlists>
<source>OPNsense.quagga.ospf6</source>
<items>prefixlists.prefixlist</items>
<display>name</display>
<group>name</group>
</template>
<display>name,seqnumber</display>
<display_format>%s:%s</display_format>
</prefixlists>
</Model>
<ValidationMessage>Related Prefix-List item not found.</ValidationMessage>
</linkedPrefixlistIn>
<linkedPrefixlistOut type="ModelRelationField">
<Model>
<template>
<prefixlists>
<source>OPNsense.quagga.ospf6</source>
<items>prefixlists.prefixlist</items>
<display>name</display>
<group>name</group>
</template>
<display>name,seqnumber</display>
<display_format>%s:%s</display_format>
</prefixlists>
</Model>
<ValidationMessage>Related Prefix-List item not found.</ValidationMessage>
</linkedPrefixlistOut>
@ -227,12 +227,12 @@
</redistribute>
<linkedRoutemap type="ModelRelationField">
<Model>
<template>
<routemaps>
<source>OPNsense.quagga.ospf6</source>
<items>routemaps.routemap</items>
<display>name</display>
<group>name</group>
</template>
<display>name,id</display>
<display_format>%s:%s</display_format>
</routemaps>
</Model>
<ValidationMessage>Related Route-Map item not found.</ValidationMessage>
</linkedRoutemap>