Skip to content

Commit

Permalink
mvc: move existing JsonKeyValueStoreField caches to configd (ref opns…
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Jun 6, 2024
1 parent a39add8 commit 9e42330
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/opnsense/mvc/app/models/OPNsense/Core/Hasync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
<syncitems type="JsonKeyValueStoreField">
<Multiple>Y</Multiple>
<ConfigdPopulateAct>system ha options</ConfigdPopulateAct>
<SourceFile>/tmp/ha_options.json</SourceFile>
<ConfigdPopulateTTL>60</ConfigdPopulateTTL>
<SortByValue>Y</SortByValue>
<ValidationMessage>Specify valid list of applications to sync.</ValidationMessage>
</syncitems>
Expand Down
2 changes: 0 additions & 2 deletions src/opnsense/mvc/app/models/OPNsense/Firewall/Filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@
</destination_port>
<gateway type="JsonKeyValueStoreField">
<ConfigdPopulateAct>interface gateways list</ConfigdPopulateAct>
<SourceFile>/tmp/gateway_list.json</SourceFile>
<ConfigdPopulateTTL>20</ConfigdPopulateTTL>
<ValidationMessage>Specify a valid gateway from the list matching the networks ip protocol.</ValidationMessage>
</gateway>
<log type="BooleanField">
Expand Down
2 changes: 0 additions & 2 deletions src/opnsense/mvc/app/models/OPNsense/Routes/Route.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<gateway type="JsonKeyValueStoreField">
<Required>Y</Required>
<ConfigdPopulateAct>interface gateways list</ConfigdPopulateAct>
<SourceFile>/tmp/gateway_list.json</SourceFile>
<ConfigdPopulateTTL>20</ConfigdPopulateTTL>
<ValidationMessage>Specify a valid gateway from the list matching the networks ip protocol.</ValidationMessage>
</gateway>
<descr type="DescriptionField"/>
Expand Down
2 changes: 0 additions & 2 deletions src/opnsense/mvc/app/models/OPNsense/Syslog/Syslog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
<program type="JsonKeyValueStoreField">
<Multiple>Y</Multiple>
<ConfigdPopulateAct>syslog list applications</ConfigdPopulateAct>
<SourceFile>/tmp/syslog_applications.json</SourceFile>
<ConfigdPopulateTTL>20</ConfigdPopulateTTL>
<SortByValue>Y</SortByValue>
<ValidationMessage>Specify valid source applications.</ValidationMessage>
</program>
Expand Down
1 change: 1 addition & 0 deletions src/opnsense/service/conf/actions.d/actions_interface.conf
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ type: script_output
command:/usr/local/opnsense/scripts/routes/gateways.php
type:script_output
message:list gateways
cache_ttl=20

[gateways.status]
command:/usr/local/opnsense/scripts/routes/gateway_status.php
Expand Down
1 change: 1 addition & 0 deletions src/opnsense/service/conf/actions.d/actions_syslog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ command:/usr/local/opnsense/scripts/syslog/list_applications.php
parameters:
type:script_output
message:List syslog applications
cache_ttl=20

[start]
command:/usr/local/sbin/pluginctl -s syslog-ng restart
Expand Down
1 change: 1 addition & 0 deletions src/opnsense/service/conf/actions.d/actions_system.conf
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ command:pluginctl -x
parameters:
type:script_output
message: Return ha sync options
cache_ttl=60

[list.nameservers]
command:/usr/local/opnsense/scripts/system/nameservers.php
Expand Down

0 comments on commit 9e42330

Please sign in to comment.