<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/python/vyos/utils, branch sagitta</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=sagitta</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=sagitta'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2024-08-26T05:25:22+00:00</updated>
<entry>
<title>configdiff: T5666: provide list of scripts scheduled for proposed commit</title>
<updated>2024-08-26T05:25:22+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2024-08-22T01:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=506cc4eed7614fd1a5be75d32c5018ac4749b78d'/>
<id>urn:sha1:506cc4eed7614fd1a5be75d32c5018ac4749b78d</id>
<content type='text'>
(cherry picked from commit 5819fd88e7948572a65b62885ddcba8ebbb7371c)
</content>
</entry>
<entry>
<title>utils: T6658: fix write_file check in case of empty directory path</title>
<updated>2024-08-16T05:59:28+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2024-08-15T18:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=1c0105099b9e86ada9967bdb9557501fdf434afa'/>
<id>urn:sha1:1c0105099b9e86ada9967bdb9557501fdf434afa</id>
<content type='text'>
(cherry picked from commit 58125b64c6678ea581998c9f83a19fae0cdbda12)
</content>
</entry>
<entry>
<title>system: op-mode: T3334: replace some print() statements with Warning()</title>
<updated>2024-07-30T13:53:08+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-07-30T13:50:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=1f7a775f0b674f158f28f042aa7c940c6deea79e'/>
<id>urn:sha1:1f7a775f0b674f158f28f042aa7c940c6deea79e</id>
<content type='text'>
Make it more obvious for the user aber the severity of his action.

(cherry picked from commit b3b31153963cc4338e8229f9f94b339682dd73a0)
</content>
</entry>
<entry>
<title>system: op-mode: T3334: allow delayed getty restart when configuring serial ports</title>
<updated>2024-07-30T13:53:08+00:00</updated>
<author>
<name>Andrew Topp</name>
<email>andrewt@telekinetica.net</email>
</author>
<published>2024-07-08T13:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=db6f10654df7dd19d70f9cb6f1c9e1fcd4dc7360'/>
<id>urn:sha1:db6f10654df7dd19d70f9cb6f1c9e1fcd4dc7360</id>
<content type='text'>
* Created op-mode command "restart serial console"
* Relocated service control to vyos.utils.serial helpers, used by conf- and
  op-mode serial console handling
  * Checking for logged-in serial sessions that may be affected by getty reconfig
  * Warning the user when changes are committed and serial sessions are active,
    otherwise restart services as normal. No prompts issued during commit,
    all config gen/commit steps still occur except for the service restarts
    (everything remains consistent)
  * To apply committed changes, user will need to run "restart serial console"
    to complete the process or reboot the whole router
  * Added additional flags and target filtering for generic use of helpers.

(cherry picked from commit bc9049ebd76576d727fa87b10b96d1616950237c)
</content>
</entry>
<entry>
<title>smoketest: T6592: verify no interface stalls in conntrack ct_iface_map on deletion</title>
<updated>2024-07-25T17:29:18+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-07-24T09:19:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=33f998926fbbd4cd60567d61ffe2cff21fd9a110'/>
<id>urn:sha1:33f998926fbbd4cd60567d61ffe2cff21fd9a110</id>
<content type='text'>
Now that interfaces are deleted from ct_iface_map during deletion it's time to
also add a smoketest ensuring there is no entry in the ct_iface_map once an
interface was deleted from the CLI.

(cherry picked from commit 1c42ee9d16dd49fff2cbde652bf24a38f364526c)
</content>
</entry>
<entry>
<title>utils: T5195: fix timeout comment</title>
<updated>2024-07-23T17:18:16+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-07-19T11:48:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=dc993e0069838183709031e6fb60999c76982368'/>
<id>urn:sha1:dc993e0069838183709031e6fb60999c76982368</id>
<content type='text'>
(cherry picked from commit 11b273108d78ab1588be3c077f40b2ac876369a4)
</content>
</entry>
<entry>
<title>interfaces: T6592: moving an interface between VRF instances failed</title>
<updated>2024-07-20T18:21:07+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-07-20T08:35:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=031eebc1ee473196cffe9e4b7b0164444cf88905'/>
<id>urn:sha1:031eebc1ee473196cffe9e4b7b0164444cf88905</id>
<content type='text'>
To reproduce:

    set vrf name mgmt table '150'
    set vrf name no-mgmt table '151'
    set interfaces ethernet eth2 vrf 'mgmt'
    commit

    set interfaces ethernet eth2 vrf no-mgmt
    commit

This resulted in an error while interacting with nftables:
[Errno 1] failed to run command: nft add element inet vrf_zones ct_iface_map { "eth2" : 151 }

The reason is that the old mapping entry still exists and was not removed.

This commit adds a new utility function get_vrf_tableid() and compares the
current and new VRF table IDs assigned to an interface. If the IDs do not
match, the nftables ct_iface_map entry is removed before the new entry is added.

(cherry picked from commit 452068ce78581bb6fba2df4dba197e95b9aeb33d)

# Conflicts:
#	python/vyos/ifconfig/interface.py
#	python/vyos/utils/network.py
</content>
</entry>
<entry>
<title>vyos.utils: T5195: import vyos.cpu to this package</title>
<updated>2024-06-10T11:50:33+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-06-09T07:29:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=66af3962fa79e86ca2933289f273ccad08748eab'/>
<id>urn:sha1:66af3962fa79e86ca2933289f273ccad08748eab</id>
<content type='text'>
The intention of vyos.utils package is to have a common ground for repeating
actions/helpers. This is also true for number of CPUs and their respective
core count.

Move vyos.cpu to vyos.utils.cpu

(cherry picked from commit e318eb33446de47835480d4b8f1646b39fb5c388)
</content>
</entry>
<entry>
<title>vyos.utils.io: T6385: handle keyboard interrupts in ask_yes_no</title>
<updated>2024-05-22T18:14:04+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-05-22T17:10:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=616ede08a69a8f42c23b648f41997914e660a943'/>
<id>urn:sha1:616ede08a69a8f42c23b648f41997914e660a943</id>
<content type='text'>
and return False if the user interrupts the prompt with Ctrl-C

(cherry picked from commit 5a5dda14fd3d472680568f1792e9fbdb030f3995)
</content>
</entry>
<entry>
<title>bond: T6303: system-mac is not allowed to be a multicast MAC address</title>
<updated>2024-05-10T13:21:59+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-05-10T13:15:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=82552e2abc77640b3a81560e3f8c5be2c21e3ad2'/>
<id>urn:sha1:82552e2abc77640b3a81560e3f8c5be2c21e3ad2</id>
<content type='text'>
(cherry picked from commit d8ddd7191d3004e886fa45a2cf9bd8dd5e7f5e14)
</content>
</entry>
</feed>
