<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/interface-definitions/flow-accounting-conf.xml.in, 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>T5226: Combine ipv4-address and ipv6-address validators</title>
<updated>2023-05-17T04:10:36+00:00</updated>
<author>
<name>Indrajit Raychaudhuri</name>
<email>irc@indrajit.com</email>
</author>
<published>2023-05-17T01:49:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=96d846d27ac818ee9a23bb7194bb58cfb7093387'/>
<id>urn:sha1:96d846d27ac818ee9a23bb7194bb58cfb7093387</id>
<content type='text'>
Use a single ip-address validator to combine and replace ipv4-address
and ipv6-address validators.
</content>
</entry>
<entry>
<title>xml: flow-accounting: T4437: fix node help</title>
<updated>2022-05-21T19:48:50+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-05-21T19:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=06b72d9c2f479d77b2cf33ff71226e6b9fb9c068'/>
<id>urn:sha1:06b72d9c2f479d77b2cf33ff71226e6b9fb9c068</id>
<content type='text'>
</content>
</entry>
<entry>
<title>xml: T4047: use full string match in the regex validator</title>
<updated>2022-04-29T17:51:50+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-04-29T17:51:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=80ecb1b7aaab47edeb355c3b74a763e940d88179'/>
<id>urn:sha1:80ecb1b7aaab47edeb355c3b74a763e940d88179</id>
<content type='text'>
</content>
</entry>
<entry>
<title>flow-accounting: T4277: support sending flow-data via VRF interface</title>
<updated>2022-03-01T18:10:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-03-01T18:09:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=42c011224e5aef3c27f9de6b5a74e594a404131e'/>
<id>urn:sha1:42c011224e5aef3c27f9de6b5a74e594a404131e</id>
<content type='text'>
It should be possible to send the gathered data via a VRF bound interface to
the collector. This is somehow related to T3981 but it's the opposite side of
the netflow process.

set system flow-accounting vrf &lt;name&gt;
</content>
</entry>
<entry>
<title>scripts: T4269: node.def generator should automatically add default values</title>
<updated>2022-02-24T21:47:12+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2022-02-24T21:47:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=a68c9238111c6caee78bb28f8054b8f0cfa0e374'/>
<id>urn:sha1:a68c9238111c6caee78bb28f8054b8f0cfa0e374</id>
<content type='text'>
Since introducing the XML &lt;defaultValue&gt; node it was common, but redundant,
practice to also add a help string indicating which value would be used as
default if the node is unset.

This makes no sense b/c it's duplicated code/value/characters and prone to
error. The node.def scripts should be extended to automatically render the
appropriate default value into the CLI help string.

For e.g. SSH the current PoC renders:

$ cat templates-cfg/service/ssh/port/node.def
  multi:
  type: txt
  help: Port for SSH service (default: 22)
  val_help: u32:1-65535; Numeric IP port
  ...

Not all subsystems are already migrated to get_config_dict() and make use of
the defaults() call - those subsystems need to be migrated, first before the new
default is added to the CLI help.
</content>
</entry>
<entry>
<title>flow-accounting: T4106: support specification of capture packet length</title>
<updated>2021-12-25T22:27:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-12-25T22:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=344c2776bd6e157d33ea81f548d1eacde1d3e644'/>
<id>urn:sha1:344c2776bd6e157d33ea81f548d1eacde1d3e644</id>
<content type='text'>
</content>
</entry>
<entry>
<title>flow-accounting: T4105: drop "sflow agent-address auto"</title>
<updated>2021-12-25T22:27:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-12-25T21:57:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=b9b5070203c3c3b31a7b297c5ddba8934b1ca34d'/>
<id>urn:sha1:b9b5070203c3c3b31a7b297c5ddba8934b1ca34d</id>
<content type='text'>
The implementation of the "auto" option to specify the sflow/netflow
agent-address is very error prone. The current implementation will determine
the IP address used for the "auto" value as follow:

Get BGP router-id
1) If not found use OSPF router-id
2) If not found use OSPFv3 router-id
3) If not found use "the first IP address found on the system

Well, what is the "first IP address found"? Also this changes if DHCP is in use.
Also another disadvantage is when the BGP/OSPF/OSPFv3 router-id is changed,
the agent-address is not updated upon the next reboot of the system.

This task is about removing the "auto" keyword from the CLI at all and make it
either entirely configurable by the user and hardcode the value in CLI, or not
use this at all.

If "auto" is specified we will query the system in the above order and set the
proper router-id in the CLI. If none can be found the CLI node is removed.
</content>
</entry>
<entry>
<title>flow-accounting: T4099: rename "netflow source-ip" to source-address</title>
<updated>2021-12-25T22:27:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-12-24T21:49:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=0030f9fc844036a0d1a0381a9096b1b9d368e35f'/>
<id>urn:sha1:0030f9fc844036a0d1a0381a9096b1b9d368e35f</id>
<content type='text'>
sFlow uses the source-address CLI node and netflow uses source-ip this is just
confusing and should be synced to the common source-address CLI node.
</content>
</entry>
<entry>
<title>flow-accounting: T4097: move to get_config_dict()</title>
<updated>2021-12-25T22:27:15+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-12-24T21:12:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=015e26acc8ed65b6a7d778107a83ee8604950f90'/>
<id>urn:sha1:015e26acc8ed65b6a7d778107a83ee8604950f90</id>
<content type='text'>
</content>
</entry>
</feed>
