summaryrefslogtreecommitdiff
path: root/interface-definitions/system-logs.xml.in
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2021-12-17 16:41:50 +0200
committerzsdc <taras@vyos.io>2021-12-17 16:41:50 +0200
commit86bbab75ae414f19305970e2aa8aaeb05e6990ae (patch)
tree377b12e8f2672cf9ca9314bb8d7b261347c5f320 /interface-definitions/system-logs.xml.in
parent945ab070b72ebd9f5ccfe0052ed138a93b83b297 (diff)
downloadvyos-1x-86bbab75ae414f19305970e2aa8aaeb05e6990ae.tar.gz
vyos-1x-86bbab75ae414f19305970e2aa8aaeb05e6990ae.zip
logs: T3774: Optimization for logrotate configs
* Added proper handling of default values from CLI. * Replaced rsyslog restart postrotate action to native `rsyslog-rotate` script. * Removed unnecessary checks for `None` instead `dict` - with default values the situation becomes impossible. * Fixed default value from 10 to 1 in the rsyslog CLI.
Diffstat (limited to 'interface-definitions/system-logs.xml.in')
-rw-r--r--interface-definitions/system-logs.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/system-logs.xml.in b/interface-definitions/system-logs.xml.in
index dc5751372..8b6c7c399 100644
--- a/interface-definitions/system-logs.xml.in
+++ b/interface-definitions/system-logs.xml.in
@@ -65,7 +65,7 @@
</constraint>
<constraintErrorMessage>The size must be between 1 and 1024 MB</constraintErrorMessage>
</properties>
- <defaultValue>10</defaultValue>
+ <defaultValue>1</defaultValue>
</leafNode>
<leafNode name="rotate">
<properties>