Page MenuHomeVyOS Platform
Feed All Stories

Apr 11 2020

thomas-mangin added a comment to T2171: Unify creation and manipulation of interfaces.

with T2238 interface can be listed using their feature definition (broadcast, bonding, bridge ...).

Apr 11 2020, 10:30 PMVyOS 1.4 Sagitta
thomas-mangin reopened T2226: unify all the ways commands are run as "Open".

@zsdc asked if we could find out a better API for the command and there is an issue where it seems that the environment dict passed to Popen() is not working as expected.

Apr 11 2020, 10:26 PM
thomas-mangin added a comment to T291: support for Predictable Network Interface Names.

on any equipment with many interfaces, you would expect "port 0" to be "eth0", etc. As vendors are likely to give incremental mac addresses to their interfaces, could the hardware mac address be used at boot to order the interfaces? adding new interfaces may cause a re-numbering but it would give stability on if the hardware does not change.

Apr 11 2020, 10:24 PM
thomas-mangin added a comment to T2267: equuleus: Autogenerating deb package version number for internal packages.

Naming convention seems fine.

Apr 11 2020, 10:12 PM
thomas-mangin added a comment to T2238: After re-writing list_interfaces.py to use Interfaces() pseudo-ethernet is missing.
Apr 11 2020, 9:50 PMVyOS 1.3 Equuleus (1.3.0)
c-po committed rVYOSONEX23225b31139e: openvpn: T2273: re-use vyos.util library functions.
Apr 11 2020, 8:53 PM
c-po committed rVYOSONEXb36e6e6c984e: openvpn: T2273: migrate from SysVinit to systemd.
Apr 11 2020, 8:53 PM
alainlamar added a comment to T2213: vyos-1x: WiFi mode ieee80211ac should also activate ieee80211n.

Uh, that's nice easter eggs folks :-) Thank you both for your valuable hints! They'll be very handy!

Apr 11 2020, 8:23 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2270: using load with scp/sftp and a username and password does not work.

It is a useful feature .. please do not kill, This patch will fix things until it can be looked into 馃

Apr 11 2020, 8:00 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin closed T2238: After re-writing list_interfaces.py to use Interfaces() pseudo-ethernet is missing as Resolved.
Apr 11 2020, 7:47 PMVyOS 1.3 Equuleus (1.3.0)
c-po changed the status of T2273: OpenVPN no longer starts in latest rolling, migrate to systemd from Open to In progress.
Apr 11 2020, 7:21 PMVyOS 1.3 Equuleus (1.3.0)
c-po added a comment to T2185: Start daemons with systemd units instead of with start-stop-daemon.

+1 on that, already migrated l2tp and sstp VPN to systemd today

Apr 11 2020, 7:18 PMVyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2213: vyos-1x: WiFi mode ieee80211ac should also activate ieee80211n.

I use http://jinja.quantprogramming.com/ to test templates. With it you
can test all possible combinations of input variables. (You need to test
all combinations if you're stripping whitespace, as some combination can
have a good format, another can have too much whitespace stripped)

Apr 11 2020, 7:00 PMVyOS 1.3 Equuleus (1.3.0)
c-po reassigned T2213: vyos-1x: WiFi mode ieee80211ac should also activate ieee80211n from c-po to alainlamar.
Apr 11 2020, 6:43 PMVyOS 1.3 Equuleus (1.3.0)
c-po added a comment to T2213: vyos-1x: WiFi mode ieee80211ac should also activate ieee80211n.

Looks good, you can actually emulate a wifi card: modprobe mac80211_hwsim

Apr 11 2020, 6:40 PMVyOS 1.3 Equuleus (1.3.0)
GitHub <noreply@github.com> committed rVYOSONEXda03bbf8767b: Merge pull request #329 from thomas-mangin/T2226 (authored by c-po).
Apr 11 2020, 6:36 PM
GitHub <noreply@github.com> committed rVYOSONEX143d292209b6: Merge pull request #330 from alainlamar/T2213 (authored by c-po).
Apr 11 2020, 6:36 PM
GitHub <noreply@github.com> committed rVYOSONEX7ae606605e2f: Merge pull request #331 from thomas-mangin/T2223-register (authored by c-po).
Apr 11 2020, 6:36 PM
Unknown Object (User) edited projects for T2272: Set system flow-accounting disable-imt has syntax error, added: VyOS 1.2 Crux (VyOS 1.2.5); removed VyOS 1.2 Crux.
Apr 11 2020, 6:33 PMVyOS 1.2 Crux (VyOS 1.2.5)
Unknown Object (User) changed the status of T2272: Set system flow-accounting disable-imt has syntax error from In progress to Needs testing.

PR https://github.com/vyos/vyatta-netflow/pull/5

Apr 11 2020, 6:28 PMVyOS 1.2 Crux (VyOS 1.2.5)
thomas-mangin added a comment to T2238: After re-writing list_interfaces.py to use Interfaces() pseudo-ethernet is missing.

https://github.com/vyos/vyos-1x/pull/331

Apr 11 2020, 6:13 PMVyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2272: Set system flow-accounting disable-imt has syntax error from Open to In progress.
Apr 11 2020, 6:02 PMVyOS 1.2 Crux (VyOS 1.2.5)
blackmetal added a comment to T2272: Set system flow-accounting disable-imt has syntax error.

@Dmitry
set system flow-accounting interface 'eth4.XX'
set system flow-accounting interface 'eth4.XX'
set system flow-accounting sflow agent-address 'xxx.xxx.169.246'
set system flow-accounting sflow sampling-rate '2048'
set system flow-accounting sflow server xxxxx.tld port '6343'

Apr 11 2020, 5:46 PMVyOS 1.2 Crux (VyOS 1.2.5)
Unknown Object (User) added a comment to T2272: Set system flow-accounting disable-imt has syntax error.

@blackmetal provide, please flow accounting configuration show configuration commands | strip-private | match flow for reproducing

Apr 11 2020, 5:40 PMVyOS 1.2 Crux (VyOS 1.2.5)
blackmetal created T2272: Set system flow-accounting disable-imt has syntax error.
Apr 11 2020, 5:23 PMVyOS 1.2 Crux (VyOS 1.2.5)
c-po committed rVYOSONEX867fc8d75380: Merge branch 't2264-l2tp' of github.com:c-po/vyos-1x into current.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX0edca98b751f: vpn: l2tp: sstp: T2264: create config dir on demand.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX07080afd4015: vpn: l2tp: T2264: migrate IPv6 prefix node to common CLI style.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXf8e9d1ecea05: vpn: l2tp: T2264: simplify IPv6 config dictionary elements.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX13510cac5a4a: vpn: sstp: T2008: migrate from SysVinit -> systemd.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXfb40f020bcd2: vpn: l2tp: T2264: migrate from SysVinit -> systemd.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX7f648cb2348e: vpn: sstp: T2008: bugfix KeyError 'client_gateway'.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX2928a338dee7: vpn: l2tp: T2264: proper set PPP default values to ease Jinja2 template.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXbecda904d1c4: vpn: l2tp: T2264: remove debug pprint.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX9e07ddb150fb: vpn: l2tp: T2264: remove RADIUS req-limit node.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX20da27d779ad: vpn: l2tp: T2110: re-use RADIUS XML include file.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX033062f56be9: vpn: l2tp: T2264: migrate to new dictionary keys for radius auth.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX0dd75963e82d: vpn: l2tp: T2264: use "with open()" when writing config.
Apr 11 2020, 5:14 PM
c-po closed T2264: l2tp: cleanup CLI definition as Resolved.
Apr 11 2020, 5:14 PMVyOS 1.3 Equuleus (1.3.0)
c-po committed rVYOSONEX02b4c640c8c0: vpn: sstp: T2008: set accell default values in config dict.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX762d36d5b71d: vpn: l2tp: T2264: migrate to new dictionary keys for local auth.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX539326509286: vpn: sstp: T2008: improve error message for non existent local-users.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXc39968861c97: vpn: l2tp: T2264: cleanup thread_cnt generation.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXa533ca621567: vpn: l2tp: T2264: combine WINS CLI syntax.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXf21719e65a72: vpn: sstp: T2008: cleanup thread_cnt generation.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX6a2e75dbe400: vpn: l2tp: T2264: combine IPv4/IPv6 name-server CLI syntax.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXc2ae1ca3be86: vpn: sstp: T2008: adjust DNS error message.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX0adecf6c79c0: vpn: l2tp: T2264: comment cleanup on chk_con().
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX5a1a4bb5ac2d: vpn: l2tp: T2264: introduce common config base.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX3217abf03938: vpn: l2tp: T2264: use default_config_data dict.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEX87151df4aabc: vpn: l2tp: T2264: import cleanup.
Apr 11 2020, 5:14 PM
c-po committed rVYOSONEXf35cf88ec4c6: vpn: l2tp: T2264: rename files to match CLI levels.
Apr 11 2020, 5:14 PM
runar added a subtask for T2175: Rewriting all FRR processes allow for reloading and to XML/Python style: T2271: OSPF: add per VRF instance support.
Apr 11 2020, 5:10 PM
runar added a parent task for T2271: OSPF: add per VRF instance support: T2175: Rewriting all FRR processes allow for reloading and to XML/Python style.
Apr 11 2020, 5:10 PMVyOS 1.3 Equuleus (1.3.0)
alainlamar added a comment to T2213: vyos-1x: WiFi mode ieee80211ac should also activate ieee80211n.

Pull request: https://github.com/vyos/vyos-1x/pull/330

Apr 11 2020, 5:07 PMVyOS 1.3 Equuleus (1.3.0)
daniil renamed T2271: OSPF: add per VRF instance support from VyOS 1.3 Equuleus to OSPF: add VRF support.
Apr 11 2020, 5:07 PMVyOS 1.3 Equuleus (1.3.0)
daniil created T2271: OSPF: add per VRF instance support.
Apr 11 2020, 5:06 PMVyOS 1.3 Equuleus (1.3.0)
jestabro added a comment to T2270: using load with scp/sftp and a username and password does not work.

True, it doesn't currently work; that patch has various problems.

Apr 11 2020, 4:52 PMVyOS 1.3 Equuleus (1.3.0)
alainlamar closed T2233: Typos in wlanX.cfg as Resolved.
Apr 11 2020, 3:17 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2253: Fix use of cmd in merge config and remote function helpers.
fingerprint = cmd(fingerprint_cmd, shell=True, stderr=DEVNULL)

I have converted this to

fingerprint = cmd(fingerprint_cmd,  stderr=DEVNULL, input=input=host_key)
Apr 11 2020, 2:01 PMVyOS 1.3 Equuleus (1.3.0)
GitHub <noreply@github.com> committed rVYOSONEXc27f13ab459e: Merge pull request #326 from thomas-mangin/T2265 (authored by c-po).
Apr 11 2020, 1:33 PM
thomas-mangin claimed T2223: convert operational show interfaces to python/XML.
Apr 11 2020, 1:20 PMVyOS 1.3 Equuleus (1.3.6)
thomas-mangin added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

ok will add the feature once the current set of patch waiting approval are in to not have to deal with rebasing etc :-)

Apr 11 2020, 12:20 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2265: DHCP to be an attribute of the class instead of a inheritance.

The works also include the migration of template to separate files as per T2230

Apr 11 2020, 12:18 PMVyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

Yes, that would be useful, for example conf_mode scripts could print warnings that would go to the syslog when the config is applied on boot. Other scripts output is seen by the user anyway so I don't see a use elsewhere.

Apr 11 2020, 12:15 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

It will not intercept what is printed by executed programs. I could add an option for the functions to have stderr intercepted and printed by VyOS (causing program errors to go to logs)

Apr 11 2020, 11:19 AMVyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

Oh, nice!

Apr 11 2020, 11:00 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

Everything sent to stderr will both go to the screen and syslog.
If you raise it auto-magically format the raised exception to the user (the traceback is sent to stderr and thefore goes to syslog)

Apr 11 2020, 10:52 AMVyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2186: Provide more information to the user when a traceback is reported to the user.

How do we use this new "airbag.py" for on-demand logging from scripts? For example if I want to print a warning when executing a conf_mode script that should go both to stderr and to a file, but is not a fatal exception?

Apr 11 2020, 10:40 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2268: DHCPv6 is broken.
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:d9:5b:04 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
       valid_lft 78872sec preferred_lft 78872sec
    inet6 fe80::a00:27ff:fed9:5b04/64 scope link
       valid_lft forever preferred_lft forever
Apr 11 2020, 9:59 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin renamed T2270: using load with scp/sftp and a username and password does not work from using load with a username and password does not work to using load with scp/sftp and a username and password does not work.
Apr 11 2020, 9:31 AMVyOS 1.3 Equuleus (1.3.0)
c-po updated the task description for T2264: l2tp: cleanup CLI definition.
Apr 11 2020, 9:30 AMVyOS 1.3 Equuleus (1.3.0)
c-po updated the task description for T2264: l2tp: cleanup CLI definition.
Apr 11 2020, 9:29 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin assigned T2270: using load with scp/sftp and a username and password does not work to jestabro.
Apr 11 2020, 9:29 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin updated subscribers of T2270: using load with scp/sftp and a username and password does not work.

This naive patch fixes the issue but I am not sure it is correct and will let @jestabro decide how to handle it (as git gives him as the author of the file)

diff --git a/python/vyos/remote.py b/python/vyos/remote.py
index f8a21f0..a69537e 100644
--- a/python/vyos/remote.py
+++ b/python/vyos/remote.py
@@ -140,10 +140,18 @@ def get_remote_config(remote_file):
                 print('HTTP error: {0} {1}'.format(*val))
                 sys.exit(1)
Apr 11 2020, 9:29 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2270: using load with scp/sftp and a username and password does not work.
Apr 11 2020, 9:21 AMVyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2263: Reset feature for SSTP sessions from In progress to Needs testing.
Apr 11 2020, 7:00 AMVyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2262: Broken reset commands for pptp and l2tp from In progress to Needs testing.
Apr 11 2020, 6:59 AMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2238: After re-writing list_interfaces.py to use Interfaces() pseudo-ethernet is missing.

Yes, it is missing, nothing to do with me but the fact the code does not yet find what is what from the interface data as we discussed.
https://github.com/vyos/vyos-1x/commit/bbea850ea5f8ff0402cd276ab63963ece7e0c763#diff-667867449bff9faf1ac285125ceada77

Apr 11 2020, 1:08 AMVyOS 1.3 Equuleus (1.3.0)

Apr 10 2020

GitHub <noreply@github.com> committed rVYOSONEX74f498f8119a: Merge pull request #327 from DmitriyEshenko/fix-res-ra (authored by c-po).
Apr 10 2020, 11:26 PM
GitHub <noreply@github.com> committed rVYOSONEX097929176582: Merge pull request #328 from DmitriyEshenko/patch-12 (authored by c-po).
Apr 10 2020, 11:25 PM
c-po updated the task description for T2264: l2tp: cleanup CLI definition.
Apr 10 2020, 10:55 PMVyOS 1.3 Equuleus (1.3.0)
c-po updated the task description for T2110: RADIUS: supply include file for radius config to have a uniform CLI.
Apr 10 2020, 10:35 PMVyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2269: SSTP specify tunnels names from Open to In progress.

PR https://github.com/vyos/vyos-1x/pull/328

Apr 10 2020, 10:17 PMVyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) created T2269: SSTP specify tunnels names.
Apr 10 2020, 10:13 PMVyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) changed the status of T2263: Reset feature for SSTP sessions from Open to In progress.

PR https://github.com/vyos/vyos-1x/pull/327

Apr 10 2020, 9:59 PMVyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2268: DHCPv6 is broken.

no link-local IPv6 address for eth0

IIRC vyos doesn't support setting link-local addresses on interfaces
through the CLI, though a IPv6 interface should get one by default by the
kernel (I may be mistaken, what does "ip addr" say?)

Apr 10 2020, 9:50 PMVyOS 1.3 Equuleus (1.3.0)
runar updated the task description for T2267: equuleus: Autogenerating deb package version number for internal packages.
Apr 10 2020, 9:38 PM
thomas-mangin renamed T2265: DHCP to be an attribute of the class instead of a inheritance from Move DHCP from inside Interface to DHCP to be an attribute of the class instead of a inheritance.
Apr 10 2020, 9:37 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin closed T2265: DHCP to be an attribute of the class instead of a inheritance as Resolved.
Apr 10 2020, 9:36 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2265: DHCP to be an attribute of the class instead of a inheritance.

https://github.com/vyos/vyos-1x/pull/326

Apr 10 2020, 9:36 PMVyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2268: DHCPv6 is broken.
Apr 10 2020, 9:35 PMVyOS 1.3 Equuleus (1.3.0)
runar added a comment to T2267: equuleus: Autogenerating deb package version number for internal packages.

Change description since last update:

Apr 10 2020, 9:24 PM
runar updated the task description for T2267: equuleus: Autogenerating deb package version number for internal packages.
Apr 10 2020, 9:21 PM
runar added a comment to T2267: equuleus: Autogenerating deb package version number for internal packages.

Change description since original update.
versioning of 1.3dev-3-g1234567 will count as newer then 1.3dev3-3-g1234567 this means that all dev releases needs to have a initial index. i've added it indexed from zero.
for a full version list see here

Original order               Sorted order                Upstream Version
1.3dev-0-g1234567          - 1.3.1-2-g1234567          : 1.3.1-2
1.3dev0-0-g1234567         - 1.3.1                     : 1.3.1
1.3.1-2-g1234567           - 1.3.0-7-g1234567          : 1.3.0-7
1.3.1                      - 1.3.0-3-g1234567          : 1.3.0-3
1.3dev2-8-g12345671.3.0    - 1.3dev-4-g1234567         : 1.3dev-4
1.3.0-7-g1234567           - 1.3dev-0-g1234567         : 1.3dev-0
1.3dev                     - 1.3dev2-8-g12345671.3.0   : 1.3dev2-8
1.3dev-4-g1234567          - 1.3dev2                   : 1.3dev2
1.3dev1                    - 1.3dev1-4-g1234567        : 1.3dev1-4
1.3dev2                    - 1.3dev1                   : 1.3dev1
1.3dev1-4-g1234567         - 1.3dev0-1-g1234567        : 1.3dev0-1
1.3.0-3-g1234567           - 1.3dev0-0-g1234567        : 1.3dev0-0
1.3dev0-1-g1234567         - 1.3dev                    : 1.3dev
Apr 10 2020, 9:12 PM
runar updated the task description for T2267: equuleus: Autogenerating deb package version number for internal packages.
Apr 10 2020, 9:06 PM
runar triaged T2267: equuleus: Autogenerating deb package version number for internal packages as Normal priority.
Apr 10 2020, 8:46 PM
zsdc reassigned T1381: Enable DHCP option 121 processing from dmbaturin to Unknown Object (User).
Apr 10 2020, 8:36 PMVyOS 1.3 Equuleus (1.3.0)
cse342 added a comment to T1866: Commit archive over SFTP doesn't work with non-standard ports.

I did dive a bit deeper in this issue and found another workaround.
It seems to only occur when a sftp or scp host is specified with a different port than the default port.
The command "ssh-keyscan" is provided with the host in form of "hostname:port" which it doesn't resolve to an ssh-rsa key.
ssh-keyscan needs apparently the option "-p PORT" in order to write the host key of the remote sftp/scp server to the known hosts file.
To add a host to the known hosts file I ran the following command:

Apr 10 2020, 8:07 PMVyOS 1.3 Equuleus (1.3.0), VyOS 1.4 Sagitta
jjakob moved T2235: OpenVPN server client IP doesn't reserve that IP in the pool from Need Triage to In Progress on the VyOS 1.3 Equuleus board.
Apr 10 2020, 7:50 PMVyOS 1.3 Equuleus (1.3.0), openvpn