<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/scripts, branch equuleus</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/marekm72/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-1x.git/atom?h=equuleus</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=equuleus'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2023-10-08T08:27:27+00:00</updated>
<entry>
<title>scripts: T4269: node.def generator should automatically add default values</title>
<updated>2023-10-08T08:27:27+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-10-08T08:27:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=b6917f386e5f6af570973d42e63baeb4a98d6261'/>
<id>urn:sha1:b6917f386e5f6af570973d42e63baeb4a98d6261</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.

(cherry picked from commit a68c9238111c6caee78bb28f8054b8f0cfa0e374)
</content>
</entry>
<entry>
<title>scripts: op-mode: T3807: bugfix node.def generator</title>
<updated>2021-09-07T09:48:28+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-09-07T09:41:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=adca504a2c5cd60be46a741ab3aef83fa4dfe4cf'/>
<id>urn:sha1:adca504a2c5cd60be46a741ab3aef83fa4dfe4cf</id>
<content type='text'>
process_node() processes the XML tree in a fixed order, "node" before "tagNode"
before "leafNode". If the generator created a "node.def" file, it can no longer
be overwritten - else we would have some stale "node.def" files with an empty
help string (T2555). Without the fixed order this would resulted in a case
where we get a node and a tagNode with the same name, e.g. "show interfaces
ethernet" and "show interfaces ethernet eth0" that the node implementation
was not callable from the CLI, rendering this command useless (T3807).

This can be fixed by forcing the "node", "tagNode", "leafNode" order by sorting
the input XML file automatically (sorting from https://stackoverflow.com/a/46128043)
thus adding no additional overhead to the user.

(cherry picked from commit 7623e37c918c65418d8dfc521f976bb91f0594c0)
</content>
</entry>
<entry>
<title>T3165: op-mode: prevent override of populated node.def file with empty content</title>
<updated>2021-08-23T07:03:19+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-08-22T18:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=bedc5021091c247356840e3bcd8efc4ee60955ac'/>
<id>urn:sha1:bedc5021091c247356840e3bcd8efc4ee60955ac</id>
<content type='text'>
This is an extension to commit b4fdcebe ("T3165: prevent override of populated
node.def file with empty content") which implemented the same thing for the
configuration mode commands.

(cherry picked from commit 17b5ac143c9128ac3e187d8d8167dd8fe6cbca7d)
</content>
</entry>
<entry>
<title>scripts: op-mode: use Python 'f'ormat strings on debug messages</title>
<updated>2021-08-23T07:03:13+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-08-22T17:48:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=ef4deb58b86b30630ada347c110b35dd741a9101'/>
<id>urn:sha1:ef4deb58b86b30630ada347c110b35dd741a9101</id>
<content type='text'>
(cherry picked from commit 252bc820b0d130d8d81b5711586eca41287abdca)
</content>
</entry>
<entry>
<title>T3768: Revert "xml: T1962: Add syntaxVersion to schema"</title>
<updated>2021-08-19T20:00:22+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2021-08-19T20:00:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=50280c9ec8dbf87a5ddea65374c651fc379b4cb3'/>
<id>urn:sha1:50280c9ec8dbf87a5ddea65374c651fc379b4cb3</id>
<content type='text'>
This reverts commit 5849ba88a1a20e4d3584843e0be46e456c5f7980.
</content>
</entry>
<entry>
<title>T3768: Revert "xml: T1962: Add script to process syntaxVersion tags during build"</title>
<updated>2021-08-19T19:59:04+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2021-08-19T19:59:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=ae6f94f8a910b91433a5133a96bfaae40ee34b4c'/>
<id>urn:sha1:ae6f94f8a910b91433a5133a96bfaae40ee34b4c</id>
<content type='text'>
This reverts commit 0ecc2c26f7ac939e4e23c14f5027ac7592c25761.
</content>
</entry>
<entry>
<title>T3574: add constraintGroup for combining validators with logical AND</title>
<updated>2021-08-12T16:09:58+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2021-08-12T16:09:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=d19b35d668184fdac00a8ef56ff58c0748f22816'/>
<id>urn:sha1:d19b35d668184fdac00a8ef56ff58c0748f22816</id>
<content type='text'>
(cherry picked from commit 591b8bcadd8b6bbd46c61484193d2bf7e16bd1ae
                    commit 31553283aaa929da63147082e85513e8d4dacf0e
                    commit 59a4aadfe419eca16e6288b37d6c51acd9789903)
</content>
</entry>
<entry>
<title>xml: T3732: merge leafNode with defaultValue with leafNode(s) of same path</title>
<updated>2021-08-12T15:19:39+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2021-08-11T16:06:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=e75db1c0c23bb8615dea92316148871edd18749e'/>
<id>urn:sha1:e75db1c0c23bb8615dea92316148871edd18749e</id>
<content type='text'>
(cherry picked from commit e7c69ead85af485b2b881f24b929a4bcc779a4ce and
                    commit ec6dc94a5144ea4ac75ba6fac4d85b4f66337ae2)
</content>
</entry>
<entry>
<title>T3165: prevent override of populated node.def file with empty content</title>
<updated>2021-06-08T05:54:32+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2021-04-02T10:57:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=bca6af49ffe39d6c01b3925c7b93b39cecaa2d25'/>
<id>urn:sha1:bca6af49ffe39d6c01b3925c7b93b39cecaa2d25</id>
<content type='text'>
(cherry picked from commit b4fdcebebecd8d8952211b78bce26d53fd29edb3)
</content>
</entry>
<entry>
<title>xml: T3445: avoid false positive on element references; use path name</title>
<updated>2021-03-31T17:03:05+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2021-03-31T13:01:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=4ae739188753d5141bbe2f3be2f954aa61562aab'/>
<id>urn:sha1:4ae739188753d5141bbe2f3be2f954aa61562aab</id>
<content type='text'>
(cherry picked from commit f22fa8e6454b1cd2539ddb7c354ac9eeeac725c5)
</content>
</entry>
</feed>
