<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/conf_mode/system-syslog.py, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2023-12-31T22:49:48+00:00</updated>
<entry>
<title>T5474: establish common file name pattern for XML conf mode commands</title>
<updated>2023-12-31T22:49:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-12-30T22:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4ef110fd2c501b718344c72d495ad7e16d2bd465'/>
<id>urn:sha1:4ef110fd2c501b718344c72d495ad7e16d2bd465</id>
<content type='text'>
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.

Example:
set interfaces ethernet -&gt; interfaces_ethernet.xml.in
set interfaces bond -&gt; interfaces_bond.xml.in
set service dhcp-server -&gt; service_dhcp-server-xml.in
</content>
</entry>
<entry>
<title>T5319: remove workarounds for defaults in system-syslog.py</title>
<updated>2023-08-07T19:46:42+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2023-08-07T01:54:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=e4f6495598d60a41963cf2e6f29fa4743af4a036'/>
<id>urn:sha1:e4f6495598d60a41963cf2e6f29fa4743af4a036</id>
<content type='text'>
</content>
</entry>
<entry>
<title>syslog: T2778: add missing argument for rsyslog.conf template</title>
<updated>2023-07-18T18:52:49+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2023-07-18T18:52:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=f14a98b613b01aa12a5ab39682054494850d1043'/>
<id>urn:sha1:f14a98b613b01aa12a5ab39682054494850d1043</id>
<content type='text'>
</content>
</entry>
<entry>
<title>syslog: T2778: fix dict index</title>
<updated>2023-07-17T14:57:54+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2023-07-17T14:57:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b2ffdb756f797787a639343bebb02e327e54483c'/>
<id>urn:sha1:b2ffdb756f797787a639343bebb02e327e54483c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>syslog: T2778: fix invalid handling of logrotate and default values</title>
<updated>2023-07-16T20:03:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-07-16T20:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=751d326c7769ac18db69de8f2be39587148be209'/>
<id>urn:sha1:751d326c7769ac18db69de8f2be39587148be209</id>
<content type='text'>
There was no /var/log/messages handler for logrotate making rsyslog
crash after a few days.

In addition we had some JIna2 templating errors for hosts, user and file
CLI nodes

jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'facility'

Looks like therey are used rarely ;) - lucky me!
</content>
</entry>
<entry>
<title>T5195: vyos.util -&gt; vyos.utils package refactoring (#2093)</title>
<updated>2023-07-14T20:18:36+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-07-14T20:18:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d1ca536da448749dff557f13ecae97b124026e96'/>
<id>urn:sha1:d1ca536da448749dff557f13ecae97b124026e96</id>
<content type='text'>
* T5195: move run, cmd, call, rc_cmd helper to vyos.utils.process

* T5195: use read_file and write_file implementation from vyos.utils.file

Changed code automatically using:

find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import read_file$/from vyos.utils.file import read_file/g' {} +
find . -type f -not -path '*/\.*' -exec sed -i 's/^from vyos.util import write_file$/from vyos.utils.file import write_file/g' {} +

* T5195: move chmod* helpers to vyos.utils.permission

* T5195: use colon_separated_to_dict from vyos.utils.dict

* T5195: move is_systemd_service_* to vyos.utils.process

* T5195: fix boot issues with missing imports

* T5195: move dict_search_* helpers to vyos.utils.dict

* T5195: move network helpers to vyos.utils.network

* T5195: move commit_* helpers to vyos.utils.commit

* T5195: move user I/O helpers to vyos.utils.io</content>
</entry>
<entry>
<title>T5224: Stop syslog.socket alongside syslog.service</title>
<updated>2023-05-14T11:50:33+00:00</updated>
<author>
<name>Joe Groocock</name>
<email>me@frebib.net</email>
</author>
<published>2023-05-14T11:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=85b7b4fea9a5e9fdcfe138ec1f1816594fee70ea'/>
<id>urn:sha1:85b7b4fea9a5e9fdcfe138ec1f1816594fee70ea</id>
<content type='text'>
Avoids the following warning, and any external service from
re-activating syslog via systemd socket activation:

    frebib@vyos# commit
    [ system syslog ]
    DEBUG/COMMAND returned (err):
    Warning: Stopping syslog.service, but it can still be activated by:
      syslog.socket
    DEBUG/COMMAND cmd 'systemctl stop syslog.service'

Signed-off-by: Joe Groocock &lt;me@frebib.net&gt;
</content>
</entry>
<entry>
<title>T5224: Fix `del system syslog`</title>
<updated>2023-05-14T11:43:52+00:00</updated>
<author>
<name>Joe Groocock</name>
<email>me@frebib.net</email>
</author>
<published>2023-05-14T11:42:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=151f851502c8f7ec09d411a8a81452f7a7d64042'/>
<id>urn:sha1:151f851502c8f7ec09d411a8a81452f7a7d64042</id>
<content type='text'>
os.unlink() is the correct function:

    Traceback (most recent call last):
      File "/usr/libexec/vyos/conf_mode/system-syslog.py", line 146, in &lt;module&gt;
        generate(c)
      File "/usr/libexec/vyos/conf_mode/system-syslog.py", line 114, in generate
        os.path.unlink(rsyslog_conf)
        ^^^^^^^^^^^^^^
    AttributeError: module 'posixpath' has no attribute 'unlink'

Signed-off-by: Joe Groocock &lt;me@frebib.net&gt;
</content>
</entry>
<entry>
<title>syslog: T2769: add VRF support</title>
<updated>2023-05-08T20:45:53+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-05-08T20:34:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=46d2bcdb0b500b4d1b9d973ab5b9ca3c6cf44e51'/>
<id>urn:sha1:46d2bcdb0b500b4d1b9d973ab5b9ca3c6cf44e51</id>
<content type='text'>
Allow syslog messages to be sent through a VRF (e.g. management).
</content>
</entry>
<entry>
<title>syslog: T2778: migrate to get_config_dict()</title>
<updated>2023-05-08T20:45:53+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-05-08T19:27:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940'/>
<id>urn:sha1:1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940</id>
<content type='text'>
</content>
</entry>
</feed>
