Page MenuHomeVyOS Platform
Feed Advanced Search

Mar 31 2020

thomas-mangin created T2190: Instantiating Interfaces without risk of creation.
Mar 31 2020, 4:53 PM
thomas-mangin added a comment to T2184: OpenVPN op_mode tools broken.

@jjakob if what you say is correct then the solution should look like. I can not test it tho (simply as I do not know how to setup OpenVPN and have no lab to make it work).

Mar 31 2020, 4:30 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2187: Python Unit testing.
Mar 31 2020, 10:06 AM · VyOS 1.5 Circinus
thomas-mangin created T2186: Provide more information to the user when a traceback is reported to the user.
Mar 31 2020, 8:20 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2184: OpenVPN op_mode tools broken.

Thank you for the assignment but I have not looked at or touched the OpenVPN code (and never used OpenVPN myself).
This issue with the op_mode, not config mode, so so it must have been there for a while.
I could change the code to check that the file exist, and prevent this fault but I am not sure it would be the right thing todo.

Mar 31 2020, 8:03 AM · VyOS 1.3 Equuleus (1.3.0)

Mar 30 2020

thomas-mangin updated the task description for T2182: Failure to commit an IPv6 address on a tunnel interface.
Mar 30 2020, 9:58 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2182: Failure to commit an IPv6 address on a tunnel interface.

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

Mar 30 2020, 9:49 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin claimed T2182: Failure to commit an IPv6 address on a tunnel interface.
Mar 30 2020, 9:45 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin updated the task description for T2182: Failure to commit an IPv6 address on a tunnel interface.
Mar 30 2020, 9:40 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2182: Failure to commit an IPv6 address on a tunnel interface.
Mar 30 2020, 9:29 PM · VyOS 1.3 Equuleus (1.3.0)

Mar 28 2020

thomas-mangin added a comment to T2173: Add the ability to use VRF on VTI interfaces.

It requires a migration of the VTI interface to python first.

Mar 28 2020, 10:02 PM · VyOS 1.4 Sagitta
thomas-mangin added a comment to T2171: Unify creation and manipulation of interfaces.

Regarding the reference counter for changes. It can also be implemented by storing in an Interface specific class level dictionary the last know state of the interface.
However, should multiple instances of the class be run by multiple programs then this could become problematic and this limitation should be kept in mind.

Mar 28 2020, 10:57 AM · VyOS 1.4 Sagitta
thomas-mangin added a comment to T2171: Unify creation and manipulation of interfaces.

The recent change in implementation have changed the code from "if/else" to data-driven.
For example, every class now has a "definition" dictionary which indicates what the interface can/cannot do, for example, be bonded or not or it it supports vlan.

Mar 28 2020, 10:52 AM · VyOS 1.4 Sagitta
thomas-mangin added a comment to T2171: Unify creation and manipulation of interfaces.

There this three types of functions which as class can have:

  • "normal" when the first argument is "self"
  • classmethod (using the @classmethod decorator before the function). In that case self replaced from an instance of the class by a reference to the class itself (often called cls, in that case InterfaceClass)
  • staticmethod (where the function does not need class data and is jus placed under the class) can be called with InterfaceClass.func()
Mar 28 2020, 10:31 AM · VyOS 1.4 Sagitta

Mar 26 2020

thomas-mangin added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

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

Mar 26 2020, 1:06 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

Thanks - understood.

Mar 26 2020, 11:11 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

Hi jjakob, AFAICS the patch above should have fixed any problem with the ethtool. If not I will need to understand why.

Mar 26 2020, 9:24 AM · VyOS 1.3 Equuleus (1.3.0)

Mar 25 2020

thomas-mangin added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

was this was not already fixed ?
https://github.com/vyos/vyos-1x/commit/8f39784c847801c0b766a0c9289da0976ffd0604#diff-ca1457dc16e0b9a43de02cf08140b65aR123

Mar 25 2020, 7:15 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

let me try to put a quick patch for you.

Mar 25 2020, 7:06 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2158: Commit fails if ethernet interface doesn't support flow control (pause).

we can fix it in two ways: undo the commit which check the return code of the program, hiding the issue and add a first BIG PRINT warning stage or find the root cause and fix it (harder).

Mar 25 2020, 7:04 PM · VyOS 1.3 Equuleus (1.3.0)

Mar 24 2020

thomas-mangin added a comment to T2154: BCM57810 nic fails to start.

also all calls to start-stop-daemon need to have a --oknodo option added

Mar 24 2020, 8:14 PM

Mar 23 2020

thomas-mangin added a comment to T2014: Use vendor specific NTP Pool hostname.

I believe your default settings are not bad as, in our case, we are part of the ntp pool and our kit will use our own NTP servers :-)

Mar 23 2020, 7:47 PM · VyOS 1.3 Equuleus (1.3.5)
thomas-mangin closed T2154: BCM57810 nic fails to start as Resolved.
Mar 23 2020, 6:45 PM
thomas-mangin added a comment to T2154: BCM57810 nic fails to start.

pushed https://github.com/vyos/vyos-1x/pull/261 which should fix the issue.
@lluu131 if you know how to use vi and only if you are sure you can run:

sudo vi /usr/lib/python3/dist-packages/vyos/ifconfig/ethernet.py +123

and you change CalledProcessError with RuntimeError

Mar 23 2020, 6:45 PM

Mar 9 2020

thomas-mangin created T2114: Use unique interface name prefix for each tunnel type.
Mar 9 2020, 1:59 PM · VyOS 1.5 Circinus

Mar 8 2020

thomas-mangin changed the status of T2109: Ping by name broken in VyOS 1.3-rolling-202003080217 from Confirmed to In progress.
Mar 8 2020, 8:32 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2109: Ping by name broken in VyOS 1.3-rolling-202003080217.

sorry for this oversight.

Mar 8 2020, 8:28 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2109: Ping by name broken in VyOS 1.3-rolling-202003080217.

https://github.com/vyos/vyatta-op/pull/36

Mar 8 2020, 8:28 PM · VyOS 1.3 Equuleus (1.3.0)

Mar 6 2020

thomas-mangin added a comment to T2104: ifconfig.py size.

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

Mar 6 2020, 12:49 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin reopened T2104: ifconfig.py size as "Needs testing".
Mar 6 2020, 12:48 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin closed T2104: ifconfig.py size as Resolved.
Mar 6 2020, 12:47 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin changed the status of T2104: ifconfig.py size from Open to Needs testing.
Mar 6 2020, 12:46 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin claimed T2104: ifconfig.py size.
Mar 6 2020, 12:46 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin updated the task description for T2104: ifconfig.py size.
Mar 6 2020, 12:45 AM · VyOS 1.3 Equuleus (1.3.0)

Mar 5 2020

thomas-mangin created T2104: ifconfig.py size.
Mar 5 2020, 11:10 PM · VyOS 1.3 Equuleus (1.3.0)

Feb 29 2020

thomas-mangin closed T2046: allowing sub-classes of Interface to redefine how the interface is created as Resolved.

The changes are also part of the patch for T2057 which was merged.

Feb 29 2020, 1:43 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin changed the status of T2082: WireGuard broken after merging T2057 from Open to In progress.
Feb 29 2020, 1:09 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2082: WireGuard broken after merging T2057.

All my apologies for this stupid bug.

Feb 29 2020, 1:08 AM · VyOS 1.3 Equuleus (1.3.0)

Feb 24 2020

thomas-mangin moved T2057: Generalised Interface configuration from Need Triage to In Progress on the VyOS 1.3 Equuleus board.

The patch is ready for inclusion.

Feb 24 2020, 11:59 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2057: Generalised Interface configuration.

This work raised an issue with the current pattern of using Interface(..).remove() which is used in VLANIf as it requires Interface to know that EthernetIf can not be deleted (an implementation detail which should remain in EthernetIf).

Feb 24 2020, 11:58 AM · VyOS 1.3 Equuleus (1.3.0)

Feb 20 2020

thomas-mangin added a comment to T2057: Generalised Interface configuration.

This work overtakes T2046, as it implements the same _create/_delete interface. If merged it would replace it.

Feb 20 2020, 5:17 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2057: Generalised Interface configuration.
Feb 20 2020, 4:54 PM · VyOS 1.3 Equuleus (1.3.0)

Feb 19 2020

thomas-mangin added a comment to T31: Add VRF support.

We could indeed create the VRF as we parse interfaces, and auto-allocate the VRF number, removing this control from the user.

Feb 19 2020, 2:18 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Feb 18 2020

thomas-mangin added a comment to T31: Add VRF support.

should for multiple routing tables:
https://andir.github.io/posts/linux-ip-vrf/
http://www.allgoodbits.org/articles/view/24
https://patchwork.ozlabs.org/patch/546171/

Feb 18 2020, 5:52 PM · VyOS 1.3 Equuleus (1.3.0-epa1)

Feb 17 2020

thomas-mangin updated the task description for T2046: allowing sub-classes of Interface to redefine how the interface is created.
Feb 17 2020, 5:53 AM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2046: allowing sub-classes of Interface to redefine how the interface is created.
Feb 17 2020, 5:50 AM · VyOS 1.3 Equuleus (1.3.0)

Feb 14 2020

thomas-mangin renamed T2028: Convert "interfaces tunnel" to new XML/Python representation from Convert "interface tunnel" to new XML/Python representation to Convert "interfaces tunnel" to new XML/Python representation.
Feb 14 2020, 8:20 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2028: Convert "interfaces tunnel" to new XML/Python representation.

initial patch released calling for a review / comments ( PR from github.com/thomas-mangin/vyos-1x T2028 branch) - show command not migrated yet.

Feb 14 2020, 8:12 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin renamed T2028: Convert "interfaces tunnel" to new XML/Python representation from Convert GRE Tunnelling to new XML/Python representation to Convert "interface tunnel" to new XML/Python representation.
Feb 14 2020, 8:11 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2038: repository organisation change.
Feb 14 2020, 11:06 AM · Invalid
thomas-mangin added a comment to T2037: Make use of a systemd environment file.

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

Feb 14 2020, 10:11 AM · VyOS 1.4 Sagitta
thomas-mangin created T2037: Make use of a systemd environment file.
Feb 14 2020, 10:07 AM · VyOS 1.4 Sagitta

Feb 12 2020

thomas-mangin renamed T2028: Convert "interfaces tunnel" to new XML/Python representation from GRE Tunneling support to Convert GRE Tunnelling to new XML/Python representation.
Feb 12 2020, 2:37 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2028: Convert "interfaces tunnel" to new XML/Python representation.
> egrep -ri '[^ag]gre[^apens]' .
./data/templates/rsyslog/rsyslog.conf:$RepeatedMsgReduction on
./src/op_mode/maya_date.py:        August 11, 3114 BC gregorian date. In this case UNIX epoch
Feb 12 2020, 1:26 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2028: Convert "interfaces tunnel" to new XML/Python representation.
Feb 12 2020, 12:57 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin created T2028: Convert "interfaces tunnel" to new XML/Python representation.
Feb 12 2020, 12:45 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T31: Add VRF support.
In T31#53189, @rherold wrote:

Could be away. But from my experience most people use vrf to seperate managment from production, and as second prio seperate customers and so on.
But the managment vrf must not be the "default" vrf.

Feb 12 2020, 12:32 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
thomas-mangin added a comment to T31: Add VRF support.

Here is a patch to implement VRF. Binding is set to work on all VRF for daemon so that BGP and other protocols will work on all VRF.
https://gist.github.com/thomas-mangin/7704c538d905190bd05cfe613bd9f4f5

Feb 12 2020, 12:28 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
thomas-mangin added a comment to T31: Add VRF support.

while it would be quite nice to have a Cumulus 4.0+ like default management VLAN and make all services management aware (which would quite considerably increase the among of work to get something out), I am proposing instead make sure that all services running on the default VRF are available on VRF as a first step.

Feb 12 2020, 10:28 AM · VyOS 1.3 Equuleus (1.3.0-epa1)

Feb 10 2020

thomas-mangin added a comment to T2027: get_config_dict is failing when the configuration section is empty/missing.

suggesting https://github.com/vyos/vyos-1x/pull/217

Feb 10 2020, 10:59 PM · VyOS 1.3 Equuleus (1.3.0-epa1), VyOS 1.4 Sagitta
thomas-mangin created T2027: get_config_dict is failing when the configuration section is empty/missing.
Feb 10 2020, 10:09 PM · VyOS 1.3 Equuleus (1.3.0-epa1), VyOS 1.4 Sagitta

Feb 5 2020

thomas-mangin added a comment to T31: Add VRF support.

Identified configuration format change:

Feb 5 2020, 5:19 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
thomas-mangin added a comment to T31: Add VRF support.

I have a use case for VRF / Linux namespace with VyOS and was wondering if there was a way to break this task down, first allowing the manual creation of VRF/namespace using the CLI (without linking the work to BGP). I will be able to contribute the required changes to the vyos-1x repository should I be given enough direction on how you would like to proceed.

Feb 5 2020, 1:52 PM · VyOS 1.3 Equuleus (1.3.0-epa1)