<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/python/vyos/utils, branch 1.4.0</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=1.4.0</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=1.4.0'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2024-05-22T18:14:04+00:00</updated>
<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>
<entry>
<title>netns: T6295: disable incomplete support in VyOS 1.4 sagitta</title>
<updated>2024-05-02T19:04:30+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-05-02T19:04:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=dd40ed58b9e50d40cd395e67be3e9bccfb89e1f6'/>
<id>urn:sha1:dd40ed58b9e50d40cd395e67be3e9bccfb89e1f6</id>
<content type='text'>
The netns support currently available on the VyOS CLI is only a
proof-of-technology, we have no real support for any service behind it.

In order to not confuse anyone on the LTS branch we decided to remove the
netns option for interfaces until there is a proper usecase and implementation
available.
</content>
</entry>
<entry>
<title>vyos.utils: T6244: add support for year timebase in seconds_to_human()</title>
<updated>2024-04-22T16:15:28+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-04-21T08:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=94780c9b5a684c4e0c0b649d6e07081b0a52274e'/>
<id>urn:sha1:94780c9b5a684c4e0c0b649d6e07081b0a52274e</id>
<content type='text'>
We only supported calculating seconds to weeks but not seconds to years. This
has been added.

Testcase:
from vyos.utils.convert import seconds_to_human

minute = 60
hour = minute * 60
day = hour * 24
week = day * 7
year = day * 365.25

for separator in ['', ' ', '-', '/']:
  print(f'----- Using separator "{separator}" -----')
  print(seconds_to_human(10, separator))
  print(seconds_to_human(5* minute, separator))
  print(seconds_to_human(3* hour, separator))
  print(seconds_to_human(4* day, separator))
  print(seconds_to_human(7 * week, separator))
  print(seconds_to_human(10 * year, separator))
  print(seconds_to_human(5*year + 4*week + 3*day + 2*hour + minute + 5, separator))
  print()

cpo@LR1.wue3:~$ ./foo.py
----- Using separator "" -----
10s
5m
3h
4d
7w
10y
5y4w3d2h1m5s

----- Using separator " " -----
10s
5m
3h
4d
7w
10y
5y 4w 3d 2h 1m 5s

----- Using separator "-" -----
10s
5m
3h
4d
7w
10y
5y-4w-3d-2h-1m-5s

----- Using separator "/" -----
10s
5m
3h
4d
7w
10y
5y/4w/3d/2h/1m/5s

(cherry picked from commit 8d8f3137d174a43a259cbe50dd12730805f0200c)
</content>
</entry>
<entry>
<title>vyos.utils: T6244: use list to build up result string</title>
<updated>2024-04-22T16:15:28+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-04-21T08:33:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=2ccc0e105223e2cb5558c52baba8ddf356bd34a8'/>
<id>urn:sha1:2ccc0e105223e2cb5558c52baba8ddf356bd34a8</id>
<content type='text'>
When handling optional separators rather build up a list and join the list
with the requested delimiter to form the resulting human readable time string.

(cherry picked from commit 6e9cd8821ca028b5bc05c14b0b4e3454036da6da)
</content>
</entry>
<entry>
<title>image-tools: T6154: installer prompts to confirm a non-default passwd</title>
<updated>2024-04-17T01:17:57+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2024-04-16T18:38:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=abfd626653593357190026a54b75257cdedee5f5'/>
<id>urn:sha1:abfd626653593357190026a54b75257cdedee5f5</id>
<content type='text'>
(cherry picked from commit f43edbd7cd36f52a0cd9c475b53f317882f4a6f9)
</content>
</entry>
<entry>
<title>utils.io: T6207: allow default in select_entry</title>
<updated>2024-04-08T05:38:30+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2024-04-08T02:46:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=8d35b257caaec8da1cf0810205674d839e720f19'/>
<id>urn:sha1:8d35b257caaec8da1cf0810205674d839e720f19</id>
<content type='text'>
(cherry picked from commit 5a8be747febc13b7d3be88e8ace7ec2aa0b2ca28)
</content>
</entry>
<entry>
<title>accel-ppp: T6187: use correct CPU counts adjusted for SMT</title>
<updated>2024-03-31T00:38:09+00:00</updated>
<author>
<name>Daniil Baturin</name>
<email>daniil@baturin.org</email>
</author>
<published>2024-03-30T15:29:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=92d44fb6aef675dfdc1e2433bbb7f9f6ff1b3abe'/>
<id>urn:sha1:92d44fb6aef675dfdc1e2433bbb7f9f6ff1b3abe</id>
<content type='text'>
(cherry picked from commit 6927c0b622c8feaece907944bae3d4724f1e55a0)
</content>
</entry>
<entry>
<title>dhcp-server: T4718: Listen-address is not commit if the ip address is on the interface with vrf</title>
<updated>2024-03-28T09:14:59+00:00</updated>
<author>
<name>khramshinr</name>
<email>khramshinr@gmail.com</email>
</author>
<published>2024-03-28T09:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=7aa188ccc51acf4e86aa3b41cde26a0a8d938510'/>
<id>urn:sha1:7aa188ccc51acf4e86aa3b41cde26a0a8d938510</id>
<content type='text'>
</content>
</entry>
<entry>
<title>init: T2044: only start rpki if cache is configured</title>
<updated>2024-02-07T20:56:38+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2024-02-07T20:34:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=f7a83728d4179ae5eedf0a109bc37733b79c82b4'/>
<id>urn:sha1:f7a83728d4179ae5eedf0a109bc37733b79c82b4</id>
<content type='text'>
This extends commit 9199c87cf ("init: T2044: always start/stop rpki during
system boot") to check the bootup configuration if an RPKI cache is defined.
Only start RPKI if this is the case.

(cherry picked from commit 9b8e11e078c42e3ae86ebfa45fec57336f25a0af)
</content>
</entry>
</feed>
