mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
[bd]*: minimal style sweep (whitespace only)
This commit is contained in:
parent
6f123ed553
commit
b8b276326b
3 changed files with 115 additions and 115 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
<model>
|
<model>
|
||||||
<mount>//OPNsense/Iperf3</mount>
|
<mount>//OPNsense/Iperf3</mount>
|
||||||
<description>Fake model for the API - will be never stored to config (only used for defaults, validation etc.).</description>
|
<description>Fake model for the API - will be never stored to config (only used for defaults, validation etc.).</description>
|
||||||
<items>
|
<items>
|
||||||
<interface type="InterfaceField">
|
<interface type="InterfaceField">
|
||||||
<Default>lan</Default>
|
<Default>lan</Default>
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
<Multiple>N</Multiple>
|
<Multiple>N</Multiple>
|
||||||
</interface>
|
</interface>
|
||||||
</items>
|
</items>
|
||||||
</model>
|
</model>
|
||||||
|
|
|
||||||
|
|
@ -1,108 +1,108 @@
|
||||||
<model>
|
<model>
|
||||||
<mount>//OPNsense/redis</mount>
|
<mount>//OPNsense/redis</mount>
|
||||||
<description>Redis DB</description>
|
<description>Redis DB</description>
|
||||||
<items>
|
<items>
|
||||||
<general>
|
<general>
|
||||||
<enabled type="BooleanField">
|
<enabled type="BooleanField">
|
||||||
<Default>0</Default>
|
<Default>0</Default>
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
</enabled>
|
</enabled>
|
||||||
<listen type="InterfaceField">
|
<listen type="InterfaceField">
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<Multiple>Y</Multiple>
|
<Multiple>Y</Multiple>
|
||||||
</listen>
|
</listen>
|
||||||
<protected_mode type="BooleanField">
|
<protected_mode type="BooleanField">
|
||||||
<Default>1</Default>
|
<Default>1</Default>
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
</protected_mode>
|
</protected_mode>
|
||||||
<port type="IntegerField">
|
<port type="IntegerField">
|
||||||
<MinimumValue>1</MinimumValue>
|
<MinimumValue>1</MinimumValue>
|
||||||
<MaximumValue>65536</MaximumValue>
|
<MaximumValue>65536</MaximumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<Default>6379</Default>
|
<Default>6379</Default>
|
||||||
<ValidationMessage>This must be a valid port number.</ValidationMessage>
|
<ValidationMessage>This must be a valid port number.</ValidationMessage>
|
||||||
</port>
|
</port>
|
||||||
<log_level type="OptionField">
|
<log_level type="OptionField">
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
<Default>warning</Default>
|
<Default>warning</Default>
|
||||||
<OptionValues>
|
<OptionValues>
|
||||||
<debug>Debug</debug>
|
<debug>Debug</debug>
|
||||||
<verbose>Verbose</verbose>
|
<verbose>Verbose</verbose>
|
||||||
<notice>Notice</notice>
|
<notice>Notice</notice>
|
||||||
<warning>Warning</warning>
|
<warning>Warning</warning>
|
||||||
</OptionValues>
|
</OptionValues>
|
||||||
</log_level>
|
</log_level>
|
||||||
<syslog_enabled type="BooleanField">
|
<syslog_enabled type="BooleanField">
|
||||||
<Default>0</Default>
|
<Default>0</Default>
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
</syslog_enabled>
|
</syslog_enabled>
|
||||||
<syslog_facility type="OptionField">
|
<syslog_facility type="OptionField">
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
<Default>LOCAL0</Default>
|
<Default>LOCAL0</Default>
|
||||||
<OptionValues>
|
<OptionValues>
|
||||||
<USER>USER</USER>
|
<USER>USER</USER>
|
||||||
<LOCAL0>LOCAL0</LOCAL0>
|
<LOCAL0>LOCAL0</LOCAL0>
|
||||||
<LOCAL1>LOCAL1</LOCAL1>
|
<LOCAL1>LOCAL1</LOCAL1>
|
||||||
<LOCAL2>LOCAL2</LOCAL2>
|
<LOCAL2>LOCAL2</LOCAL2>
|
||||||
<LOCAL3>LOCAL3</LOCAL3>
|
<LOCAL3>LOCAL3</LOCAL3>
|
||||||
<LOCAL4>LOCAL4</LOCAL4>
|
<LOCAL4>LOCAL4</LOCAL4>
|
||||||
<LOCAL5>LOCAL5</LOCAL5>
|
<LOCAL5>LOCAL5</LOCAL5>
|
||||||
<LOCAL6>LOCAL6</LOCAL6>
|
<LOCAL6>LOCAL6</LOCAL6>
|
||||||
<LOCAL7>LOCAL7</LOCAL7>
|
<LOCAL7>LOCAL7</LOCAL7>
|
||||||
</OptionValues>
|
</OptionValues>
|
||||||
</syslog_facility>
|
</syslog_facility>
|
||||||
<databases type="IntegerField">
|
<databases type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>0</MinimumValue>
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
<Default>16</Default>
|
<Default>16</Default>
|
||||||
</databases>
|
</databases>
|
||||||
</general>
|
</general>
|
||||||
<security>
|
<security>
|
||||||
<password type="TextField">
|
<password type="TextField">
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
</password>
|
</password>
|
||||||
<disable_commands type="CSVListField">
|
<disable_commands type="CSVListField">
|
||||||
</disable_commands>
|
</disable_commands>
|
||||||
</security>
|
</security>
|
||||||
<limits>
|
<limits>
|
||||||
<maxclients type="IntegerField">
|
<maxclients type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>0</MinimumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<Default>10000</Default>
|
<Default>10000</Default>
|
||||||
</maxclients>
|
</maxclients>
|
||||||
<maxmemory type="IntegerField">
|
<maxmemory type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>0</MinimumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
</maxmemory>
|
</maxmemory>
|
||||||
<maxmemory_policy type="OptionField">
|
<maxmemory_policy type="OptionField">
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
<Default>noeviction</Default>
|
<Default>noeviction</Default>
|
||||||
<OptionValues>
|
<OptionValues>
|
||||||
<noeviction>noeviction</noeviction>
|
<noeviction>noeviction</noeviction>
|
||||||
<volatile-ttl>volatile-ttl</volatile-ttl>
|
<volatile-ttl>volatile-ttl</volatile-ttl>
|
||||||
<allkeys-random>allkeys-random</allkeys-random>
|
<allkeys-random>allkeys-random</allkeys-random>
|
||||||
<volatile-random>volatile-random</volatile-random>
|
<volatile-random>volatile-random</volatile-random>
|
||||||
<allkeys-lru>allkeys-lru</allkeys-lru>
|
<allkeys-lru>allkeys-lru</allkeys-lru>
|
||||||
<volatile-lru>volatile-lru</volatile-lru>
|
<volatile-lru>volatile-lru</volatile-lru>
|
||||||
</OptionValues>
|
</OptionValues>
|
||||||
</maxmemory_policy>
|
</maxmemory_policy>
|
||||||
<maxmemory_samples type="IntegerField">
|
<maxmemory_samples type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>0</MinimumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<Default>5</Default>
|
<Default>5</Default>
|
||||||
</maxmemory_samples>
|
</maxmemory_samples>
|
||||||
</limits>
|
</limits>
|
||||||
<slowlog>
|
<slowlog>
|
||||||
<slower_than type="IntegerField">
|
<slower_than type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>0</MinimumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<Default>10000</Default>
|
<Default>10000</Default>
|
||||||
</slower_than>
|
</slower_than>
|
||||||
<max_len type="IntegerField">
|
<max_len type="IntegerField">
|
||||||
<MinimumValue>0</MinimumValue>
|
<MinimumValue>0</MinimumValue>
|
||||||
<Required>N</Required>
|
<Required>N</Required>
|
||||||
<Default>128</Default>
|
<Default>128</Default>
|
||||||
</max_len>
|
</max_len>
|
||||||
</slowlog>
|
</slowlog>
|
||||||
</items>
|
</items>
|
||||||
</model>
|
</model>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<Required>Y</Required>
|
<Required>Y</Required>
|
||||||
<Mask>/^(?!any$|localhost$|localnets$|none$)[0-9a-zA-Z_\-]{1,32}$/u</Mask>
|
<Mask>/^(?!any$|localhost$|localnets$|none$)[0-9a-zA-Z_\-]{1,32}$/u</Mask>
|
||||||
<ValidationMessage>Should be a string between 1 and 32 characters. Allowed characters are 0-9, a-z, A-Z, _ and -. Built-in ACL names must not be used: any, localhost, localnets, none.</ValidationMessage>
|
<ValidationMessage>Should be a string between 1 and 32 characters. Allowed characters are 0-9, a-z, A-Z, _ and -. Built-in ACL names must not be used: any, localhost, localnets, none.</ValidationMessage>
|
||||||
<Constraints>
|
<Constraints>
|
||||||
<check001>
|
<check001>
|
||||||
<ValidationMessage>An ACL with this name already exists.</ValidationMessage>
|
<ValidationMessage>An ACL with this name already exists.</ValidationMessage>
|
||||||
<type>UniqueConstraint</type>
|
<type>UniqueConstraint</type>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue