<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/scripts/build-command-op-templates, branch 1.3.8</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=1.3.8</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=1.3.8'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2021-09-07T09:48:28+00:00</updated>
<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/vyos/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/vyos/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/vyos/vyos-1x.git/commit/?id=ef4deb58b86b30630ada347c110b35dd741a9101'/>
<id>urn:sha1:ef4deb58b86b30630ada347c110b35dd741a9101</id>
<content type='text'>
(cherry picked from commit 252bc820b0d130d8d81b5711586eca41287abdca)
</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/vyos/vyos-1x.git/commit/?id=bca6af49ffe39d6c01b3925c7b93b39cecaa2d25'/>
<id>urn:sha1:bca6af49ffe39d6c01b3925c7b93b39cecaa2d25</id>
<content type='text'>
(cherry picked from commit b4fdcebebecd8d8952211b78bce26d53fd29edb3)
</content>
</entry>
<entry>
<title>T2704: force newlines after listActiveNode output.</title>
<updated>2020-07-18T05:01:12+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@vyos.io</email>
</author>
<published>2020-07-18T05:01:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fc5c2d59ecc97d782deaf9d029c07990d15c8bb4'/>
<id>urn:sha1:fc5c2d59ecc97d782deaf9d029c07990d15c8bb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>templates: T2099: make op-mode path completion helper working</title>
<updated>2020-03-04T20:45:41+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-03-04T20:42:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=94527843ecbf92d48e367b6b5e255da4e958d0be'/>
<id>urn:sha1:94527843ecbf92d48e367b6b5e255da4e958d0be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T689, T707: do not use sudo for op mode commands.</title>
<updated>2018-06-22T22:22:45+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2018-06-22T20:45:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=19a1576263cf72de200094de79095b1a0ae81ec8'/>
<id>urn:sha1:19a1576263cf72de200094de79095b1a0ae81ec8</id>
<content type='text'>
Else they all are unavailable for operator level users.
</content>
</entry>
<entry>
<title>T646: prevent convertors from overwriting existing node.def files.</title>
<updated>2018-05-17T04:51:44+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2018-05-17T04:51:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=362a791650858eea3b79e154a218630c7a4fdbea'/>
<id>urn:sha1:362a791650858eea3b79e154a218630c7a4fdbea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Correct the logic of generating tag nodes for op mode.</title>
<updated>2018-05-15T00:51:00+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2018-05-15T00:51:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=ddca0778f36266ce2416a064833410afeeb202d0'/>
<id>urn:sha1:ddca0778f36266ce2416a064833410afeeb202d0</id>
<content type='text'>
Unlike conf mode tag nodes, op mode "pseudo-tag nodes" have the real
node.def inside the node.tag dir rather than at the top level.
The required node.def at the top level is populated with the help string
from the real one.

A side effect is that commands that take arguments now must have their own
words, e.g. "run show arp" and "run show arp eth0" is impossible and has to be
"run show arp" and "run show arp interface eth0", which is probably a good thing.
</content>
</entry>
<entry>
<title>T633: build integration and minor fixes in the op mode command generator.</title>
<updated>2018-05-14T03:38:59+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2018-05-14T02:47:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6a88f32eea3850d58411b854ba102a2baa978158'/>
<id>urn:sha1:6a88f32eea3850d58411b854ba102a2baa978158</id>
<content type='text'>
</content>
</entry>
</feed>
