Page MenuHomeVyOS Platform
Feed Search

Jun 8 2020

c-po added a comment to T2561: Drop support for "system console netconsole".

A Serial/IPMI interface would be much more suited for kernel debugging.

Jun 8 2020, 11:19 AM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2564: Extend VyOS to support appliance LCDs.

This has been on my extended todo list for a long time now, but there were always higher priority issues. I'm glad someone is working on it!

Jun 8 2020, 11:10 AM · VyOS 1.2 Crux (VyOS 1.2.7)
Unknown Object (User) changed the status of T2565: Cannot connect to l2tp server with radius auth from Open to In progress.

PR https://github.com/vyos/vyos-1x/pull/446
Note: gw-ip-address necessary define for [radius] or [chap-secrets] sections.

Jun 8 2020, 9:11 AM · VyOS 1.3 Equuleus (1.3.0)
zsdc added a comment to T2561: Drop support for "system console netconsole".

@c-po I have not tried this previously, but if it works well, I would like to keep it for kernel debugging on bare-metal devices.

Jun 8 2020, 8:43 AM · VyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) claimed T2565: Cannot connect to l2tp server with radius auth.
Jun 8 2020, 8:36 AM · VyOS 1.3 Equuleus (1.3.0)
Unknown Object (User) created T2565: Cannot connect to l2tp server with radius auth.
Jun 8 2020, 8:36 AM · VyOS 1.3 Equuleus (1.3.0)

Jun 7 2020

fmertz added a comment to T2564: Extend VyOS to support appliance LCDs.

Overview of the effort:

Jun 7 2020, 9:50 PM · VyOS 1.2 Crux (VyOS 1.2.7)
c-po assigned T2564: Extend VyOS to support appliance LCDs to fmertz.
Jun 7 2020, 9:41 PM · VyOS 1.2 Crux (VyOS 1.2.7)
c-po added a project to T2564: Extend VyOS to support appliance LCDs: VyOS 1.3 Equuleus.
Jun 7 2020, 9:40 PM · VyOS 1.2 Crux (VyOS 1.2.7)
dsummers added a comment to T421: Add Pv6 prefix delegation support.

T2551 has now been fixed and confirmed working.

Jun 7 2020, 9:14 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
kroy updated the task description for T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:10 PM · VyOS 1.3 Equuleus (1.3.0)
kroy updated the task description for T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:09 PM · VyOS 1.3 Equuleus (1.3.0)
kroy updated the task description for T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:08 PM · VyOS 1.3 Equuleus (1.3.0)
kroy updated the task description for T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:06 PM · VyOS 1.3 Equuleus (1.3.0)
kroy updated the task description for T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:06 PM · VyOS 1.3 Equuleus (1.3.0)
kroy updated the task description for T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:05 PM · VyOS 1.3 Equuleus (1.3.0)
kroy created T2562: VyOS can't be used as a DHCP server for a DHCP relay.
Jun 7 2020, 8:04 PM · VyOS 1.3 Equuleus (1.3.0)
c-po renamed T2561: Drop support for "system console netconsole" from Drop support for netconsole to Drop support for "system console netconsole".
Jun 7 2020, 7:38 PM · VyOS 1.3 Equuleus (1.3.0)
c-po changed the status of T2561: Drop support for "system console netconsole" from Open to In progress.
Jun 7 2020, 7:35 PM · VyOS 1.3 Equuleus (1.3.0)
c-po updated subscribers of T2561: Drop support for "system console netconsole".

@dmbaturin @syncer @jestabro @thomas-mangin @UnicronNL

Jun 7 2020, 7:25 PM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2561: Drop support for "system console netconsole".
Jun 7 2020, 7:25 PM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2529: WWAN: migrate from ttyUSB device to new device in /dev/serial/by-bus, a subtask of T2490: Add serial (rs232) to ssh bridge service, as Resolved.
Jun 7 2020, 3:11 PM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2529: WWAN: migrate from ttyUSB device to new device in /dev/serial/by-bus as Resolved.
Jun 7 2020, 3:11 PM · VyOS 1.3 Equuleus (1.3.0)
c-po renamed T2560: New op-mode command to display information about USB interfaces from New op-mode command to display information about serial interfaces to New op-mode command to display information about USB interfaces.
Jun 7 2020, 2:34 PM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2560: New op-mode command to display information about USB interfaces, a subtask of T2490: Add serial (rs232) to ssh bridge service, as Resolved.
Jun 7 2020, 2:31 PM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2560: New op-mode command to display information about USB interfaces as Resolved.
Jun 7 2020, 2:31 PM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2560: New op-mode command to display information about USB interfaces.
Jun 7 2020, 2:31 PM · VyOS 1.3 Equuleus (1.3.0)
c-po added a comment to T2488: Remove logfile for dialup interfaces like pppoe and wwan.

It will be in the next rolling (any rolling newer then vyos-1.3-rolling-202006070117-amd64.iso)

Jun 7 2020, 12:38 PM · VyOS 1.3 Equuleus (1.3.0)
njh added a comment to T2488: Remove logfile for dialup interfaces like pppoe and wwan.

Ah, nice! I will update to the rolling release and give it is go soon.

Jun 7 2020, 12:36 PM · VyOS 1.3 Equuleus (1.3.0)
c-po added a comment to T2488: Remove logfile for dialup interfaces like pppoe and wwan.

@njh you have been right that command can be quiet handy, but instead of using a logfile we query "journalctl" for the appropriate logs.

Jun 7 2020, 12:25 PM · VyOS 1.3 Equuleus (1.3.0)
syncer changed the subtype of T2486: DNS records set via 'system static-host-mapping' return NXDOMAIN from 'service dns forwarding' after a request to a forwarded zone from "Task" to "Bug".
Jun 7 2020, 11:50 AM · VyOS 1.3 Equuleus (1.3.0)
syncer changed the subtype of T2463: DHCP-received nameserver not added to vyos-hostsd from "Task" to "Bug".
Jun 7 2020, 11:50 AM · VyOS 1.3 Equuleus (1.3.0)
c-po closed T2559: Add operational mode command to retrieve hardware sensor data as Resolved.
Jun 7 2020, 9:53 AM · VyOS 1.3 Equuleus (1.3.0)
c-po added a comment to T2559: Add operational mode command to retrieve hardware sensor data.
vyos@vmware:~$ show environment sensors
VyOS running under hypervisor, no sensors available
Jun 7 2020, 9:51 AM · VyOS 1.3 Equuleus (1.3.0)
Viacheslav added a project to T2389: BGP community-list unknown command: Ready for Crux (1.2.x).
Jun 7 2020, 9:43 AM · VyOS 1.3 Equuleus (1.3.0), VyOS 1.2 Crux (VyOS 1.2.6)
c-po claimed T2559: Add operational mode command to retrieve hardware sensor data.
Jun 7 2020, 9:38 AM · VyOS 1.3 Equuleus (1.3.0)
c-po created T2559: Add operational mode command to retrieve hardware sensor data.
Jun 7 2020, 9:37 AM · VyOS 1.3 Equuleus (1.3.0)
Viacheslav closed T2389: BGP community-list unknown command as Unknown Status.
Jun 7 2020, 9:37 AM · VyOS 1.3 Equuleus (1.3.0), VyOS 1.2 Crux (VyOS 1.2.6)
c-po added a comment to T2555: XML op-mode generation scripts silently discard XML nodes.

Idea: do not generate empty node.def file if there is no <properties> statement.

Jun 7 2020, 9:27 AM · VyOS 1.3 Equuleus (1.3.0-epa1)
jjakob added a comment to T2550: OpenVPN: IPv4 not working in client mode.

@mrozentsvayg look at https://community.openvpn.net/openvpn/ticket/360 (this is documented in the code comment right above your change as well). OpenVPN on Linux in server mode with standard protocols doesn't listen on IPv6, just IPv4. We need to force it to bind to a IPv6 socket using these undocumented *6 protocols, then it'll listen on both IPv4 and IPv6. This wouldn't be necessary if OpenVPN listened on IPv6 with the default protocols or autodetected whether the local or remote IPs are v4 or v6 and chose the correct socket type, but it doesn't. Complain to the above ticket 360. We're just working within the limitations imposed by OpenVPN.

Jun 7 2020, 7:56 AM · VyOS 1.3 Equuleus (1.3.0)
mrozentsvayg added a comment to T2550: OpenVPN: IPv4 not working in client mode.
In T2550#66208, @jjakob wrote:

What happens when one remote-host is IPv4 and one is IPv6? The proposed fix would leave the protocol as udp6 in that case and the error would still be there.

Jun 7 2020, 3:55 AM · VyOS 1.3 Equuleus (1.3.0)
kroy changed the status of T2558: Add some CPU information to `show version` + fix broken hypervisor detection from Open to Needs testing.
Jun 7 2020, 1:14 AM · VyOS 1.3 Equuleus (1.3.0)
kroy created T2558: Add some CPU information to `show version` + fix broken hypervisor detection.
Jun 7 2020, 1:09 AM · VyOS 1.3 Equuleus (1.3.0)

Jun 6 2020

jestabro changed the status of T2501: Cannot recover from failed boot config load from Open to In progress.
Jun 6 2020, 10:11 PM · VyOS 1.3 Equuleus (1.3.0)
jestabro added a comment to T2501: Cannot recover from failed boot config load.

I agree with the downside of vyos-config-debug; it was provided to allow some analysis when other was not available. What was done before was a straight call to the vyatta backend; what is done now is a essentially what you're suggesting, but in a case where the context of config/configtree is not successfully initialized, hence the failure. This is a good point for analysis, however, and I will restore the behaviour, likely by (a) using a straight call to the backend, and meanwhile (b) investigating if we can have partial context for config/configtree in this case.

Jun 6 2020, 8:46 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2554: Failsafe reboot timer.

Can you ask the user if you want to start the migration failure fallback mechanism on the first boot of the new image when upgrading, and if the user chooses to enable this mechanism, you should let the user select an old secure image (execute the mechanism only on the first boot)?

Jun 6 2020, 8:37 PM · VyOS 1.4 Sagitta (1.4.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

Therefore when modifying the default boot image (either via 'add system image' or 'set system image default-boot') the script that modifies grub.cfg needs to add its own name to it (easiest to do by adding a comment line to grub.cfg with its menu entry number), so that the failsafe reboot knows into which image to reboot into (it parses out the entry number from the grub comment and sets the default entry to it).

Jun 6 2020, 8:11 PM · VyOS 1.4 Sagitta (1.4.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

Can you ask the user if you want to start the migration failure fallback mechanism on the first boot of the new image when upgrading, and if the user chooses to enable this mechanism, you should let the user select an old secure image (execute the mechanism only on the first boot)?

Jun 6 2020, 8:07 PM · VyOS 1.4 Sagitta (1.4.0)
jjakob added a comment to T2501: Cannot recover from failed boot config load.

I think 'configure; load; commit' is important to make debugging easier and faster. There are issues with the vyos-config-debug method: it needs a full reboot to test every change, which can take minutes (and one may not fix the bug in the first 10 tries even, depending on how sleep deprived one is) and it lacks a easy way to see the scripts stdout/stderr (it is discarded unless we enable airbag's debug log, which is yet another thing to have in mind) as the standard traceback that's logged to /tmp may not be enough to catch the exact error and we need to print some variables to look at them or something like that. But mainly the issue is rebooting is much slower than just doing load/commit.
Can't we just read config.boot into the session config of configtree or config? Wasn't that exactly what was done before? I'm 100% there was a function that read the config.boot file in config.py in case the config system wasn't initialised.

Jun 6 2020, 7:59 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2554: Failsafe reboot timer.

Right, that's obvious. The issue is that we need to know to *which* image to switch to, but it's easy to solve, as I'll describe.

Jun 6 2020, 7:50 PM · VyOS 1.4 Sagitta (1.4.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

In fact, you may be able to switch the default startup item by simply trying to call the following command, and this corresponds to the following command:

Jun 6 2020, 7:14 PM · VyOS 1.4 Sagitta (1.4.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

I look forward to your success.

Jun 6 2020, 3:32 PM · VyOS 1.4 Sagitta (1.4.0)
jjakob added a comment to T2554: Failsafe reboot timer.

Ah right, then all the things about replacing config.boot aren't necessary. I was thinking that /config was permanent between images, I don't know how I forgot that it lives inside each image separately.

Jun 6 2020, 3:19 PM · VyOS 1.4 Sagitta (1.4.0)
jestabro changed the subtype of T2501: Cannot recover from failed boot config load from "Task" to "Bug".
Jun 6 2020, 3:17 PM · VyOS 1.3 Equuleus (1.3.0)
jestabro lowered the priority of T2501: Cannot recover from failed boot config load from Urgent! to Normal.

The now standard method of debugging was clarified in T2409, with reference to this ticket (vyos-config-debug); the question here is whether there is any way to use 'configure; load; commit' on failed boot config load --- in the worst cases, no, as the CLI has not succssfully initialized, but will investigate. Changing to bug for evaluation.

Jun 6 2020, 3:15 PM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

You can ask the user before the upgrade operation if you want to perform the fallback on failure function on the first boot after the upgrade, and select an old image that is safe when the migration fails.

Jun 6 2020, 3:13 PM · VyOS 1.4 Sagitta (1.4.0)
c-po created T2557: clear interfaces <type> <interface> counters has no effect.
Jun 6 2020, 3:08 PM · VyOS 1.3 Equuleus (1.3.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

The way the current bootup commit works, (I'm not 100% certain, I may be wrong in some parts) is that it first looks if any components of the config require syntax migration, if yes, it backs up config.boot to config.boot.pre-migration-$(date) and goes through the migrator scripts, each one modifying the configuration to bring the syntax up to date, then it saves the new component version string and new config into config.boot, and then commits it. Therefore the config.boot is already migrated to the new syntax even if the commit then fails, meaning you can't simply reboot into the old image and expect things to work, as the old image expects the old config syntax, but the config was already migrated to the new one. We need to replace config.boot with its .pre-migration version before rebooting into the old image.

Jun 6 2020, 3:07 PM · VyOS 1.4 Sagitta (1.4.0)
jestabro added a comment to T2554: Failsafe reboot timer.

Yes, let me confirm a few details here ....

Jun 6 2020, 2:50 PM · VyOS 1.4 Sagitta (1.4.0)
c-po created T2556: "show interfaces vrrp" does not return any interface.
Jun 6 2020, 2:43 PM · VyOS 1.5 Circinus, VyOS 1.4 Sagitta
jjakob added a comment to T2554: Failsafe reboot timer.

Sorry, I don't know if I understand it wrong, but please allow me to express my opinion, but when you install and add a new image from the old image for upgrading, it may occur that it can't be used normally at startup config.boot Configuration (especially rolling update),

Jun 6 2020, 2:34 PM · VyOS 1.4 Sagitta (1.4.0)
jestabro claimed T2554: Failsafe reboot timer.

@jjakob Thanks for a good summary of one of the issues, namely, not replacing config until 'success' (at least of boot, if not other criteria). Migration does save a backup, but we had recently discussed not doing in place change by default. I would like to assess this in relation to other recent discussions of failsafe and rollback, and then proceed with that compatible change first ...

Jun 6 2020, 2:29 PM · VyOS 1.4 Sagitta (1.4.0)
jjakob changed the status of T2553: set interface ethN vif-s nnnn does not commit from In progress to Needs testing.
Jun 6 2020, 2:14 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2553: set interface ethN vif-s nnnn does not commit.

Please test with the latest 1.3 rolling image if the bug is now fixed.

Jun 6 2020, 2:14 PM · VyOS 1.3 Equuleus (1.3.0)
c-po assigned T2555: XML op-mode generation scripts silently discard XML nodes to dmbaturin.
Jun 6 2020, 2:06 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
c-po created T2555: XML op-mode generation scripts silently discard XML nodes.
Jun 6 2020, 2:06 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
jack9603301 added a comment to T2554: Failsafe reboot timer.

Perhaps a good way is still for the user to choose whether to reconfigure or restart with the old image.

Jun 6 2020, 9:56 AM · VyOS 1.4 Sagitta (1.4.0)
jack9603301 added a comment to T2554: Failsafe reboot timer.

Sorry, I don't know if I understand it wrong, but please allow me to express my opinion, but when you install and add a new image from the old image for upgrading, it may occur that it can't be used normally at startup config.boot Configuration (especially rolling update), in which case, whether or not the old config.boot There is no intention to make any migration or modification Justice. Either the configuration syntax has been changed and errors still occur after migration, or some settings of the system image have problems. A better solution is to modify grub's default boot so that it can boot from the old normal system image, if it exists, but this requires user authorization.

Jun 6 2020, 9:50 AM · VyOS 1.4 Sagitta (1.4.0)
jjakob triaged T2554: Failsafe reboot timer as Wishlist priority.
Jun 6 2020, 9:26 AM · VyOS 1.4 Sagitta (1.4.0)

Jun 5 2020

dsummers added a comment to T421: Add Pv6 prefix delegation support.

@richardpowellus Yes, your work around fixed my problem and I'm now for the first time able to receive a /56 from my ISP and divvy it up between my interfaces.

Jun 5 2020, 11:55 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
c-po added a comment to T421: Add Pv6 prefix delegation support.

Fixed in the rolling release from 20200606xx

Jun 5 2020, 11:24 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
dsummers added a comment to T421: Add Pv6 prefix delegation support.

@richardpowellus I've noted the exact same issue in T2551.

Jun 5 2020, 10:35 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
hlmtre added a comment to T421: Add Pv6 prefix delegation support.

Richardpowellus: I may be running into the same issue. What does your
id-assoc pd 2 { } section look like?

Jun 5 2020, 10:29 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
richardpowellus added a comment to T421: Add Pv6 prefix delegation support.

I seem to have figured out my problem. It seems like setting "set interfaces ethernet eth1 dhcpv6-options prefix-delegation length 60" is not working (eth1 is my WAN interface that's connected directly to my cable modem in bridge mode).

Jun 5 2020, 9:46 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
runar added a comment to T2549: repository restructuration suggestions.

Yes, we need to try/except the apply section (the other should never fail but we could still catch errors to not leave the system in an unknown state) but when applying the reverse configuration (ie: invert effective and new and re-apply) one must then be careful if that fails too (we do not want a forever loop :p). The code already runs all the get_dict and all the verify first, so we will only apply if all is ok, but still issues could occur.

Jun 5 2020, 8:48 PM · VyOS 2.0.x
richardpowellus added a comment to T421: Add Pv6 prefix delegation support.
In T421#66055, @gadams wrote:

@dsummers I have been able to get the current nightly builds to work on Comcast Business, which is delivered via ethernet. In this particular case, there are some unfortunate gotchas to keep in mind, but no modification of VyOS is currently needed, at least in my case. Very cool!

For anyone else who comes across this (I have talked to a couple folks outside of this task, as well), here are the gotchas, the second one of which is Comcast-specific:

  • You currently need to enable getting an IPv6 address on the ethernet interface, even though that's technically not required other than by the config syntax. Using parameters-only will prevent it from working, since WIDE dhcp6c will interpret that to mean that you also don't want delegated adresses.

In my experience, this causes only some small issues, but not failure. I am drafting a proposal to fix it, but it's slightly more complex than I guessed.

  • You need to know that while the Comcast cablemodem receives a /56 from the network to delegate to you, it carves off the first (sla-id 0) /64 of that for the link between it and your router, and then only delegates out of the highest (/56 4-bit sla-id f) /60 to your router. This is odd, and I don't know why they do it that way. So, you need to know that you'll be getting a /60 delegated to you, and that you should use 4-bit SLAs.

I had to figure this out by looking at the DHCPv6 conversation on the wire some time ago.

The config syntax could help a lot here, but this seems to be limited a bit by WIDE dhcp6c's conf options.

In any event, here's a working config I'm using (well, simplified, but still enough to make it work):

interfaces {
    ...
    ethernet eth3 {
        address 10.1.11.3/24
        address dhcpv6
        description OUTSIDE-v6
        dhcpv6-options {
            prefix-delegation {
                interface br0 {
                    address 1
                    sla-id 1
                    sla-len 4
                }
                interface eth2.4 {
                    address 1
                    sla-id 4
                    sla-len 4
                }
                interface eth2.6 {
                    address 1
                    sla-id 6
                    sla-len 4
                }
            }
        }
        ...
    }
    ....
}
...
    router-advert {
        interface br0 {
            name-server 2603:....
            name-server 2603:....
            prefix ::/64 {
                valid-lifetime 2592000
            }
        }
    .... and so on for the other interfaces ...

(The address 1 bits aren't strictly necessary, but I like my routers having easily recignizable addresses when I'm looking over traffic flows and routes and so on.)

Happy v6 surfing!

Jun 5 2020, 8:27 PM · VyOS 1.3 Equuleus (1.3.0-epa1)
c-po closed T1958: Include only firmware we actually need as Resolved.
Jun 5 2020, 8:22 PM · VyOS 1.3 Equuleus (1.3.0)
c-po updated subscribers of T1958: Include only firmware we actually need.

This could raise potential new bugs if a firmware file was missed out for whatever reason. Please open a new Task if this happened to you. Running it in @kroy's lab showed no problems so far.

Jun 5 2020, 6:41 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2549: repository restructuration suggestions.

Yes, we need to try/except the apply section (the other should never fail but we could still catch errors to not leave the system in an unknown state) but when applying the reverse configuration (ie: invert effective and new and re-apply) one must then be careful if that fails too (we do not want a forever loop :p). The code already runs all the get_dict and all the verify first, so we will only apply if all is ok, but still issues could occur.

Jun 5 2020, 4:32 PM · VyOS 2.0.x
c-po closed T2548: Interfaces allowing inappropriate network addresses to be assigned as Resolved.
Jun 5 2020, 4:11 PM · VyOS 1.3 Equuleus (1.3.0)
c-po changed Is it a breaking change? from none to behavior on T1958: Include only firmware we actually need.
Jun 5 2020, 4:00 PM · VyOS 1.3 Equuleus (1.3.0)
c-po changed the status of T1958: Include only firmware we actually need from Open to In progress.
Jun 5 2020, 4:00 PM · VyOS 1.3 Equuleus (1.3.0)
thomas-mangin added a comment to T2522: Python CLI.

@jjakob control-R should be implemented. It is a feature I use too and expect it - just did not think it was worth a demo 0.0 release - there is plenty to improve with the code in the branch - it surely has bugs -as I said POC :-)

Jun 5 2020, 3:37 PM · VyOS 2.0.x
jjakob added a comment to T2553: set interface ethN vif-s nnnn does not commit.

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

Jun 5 2020, 3:34 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob changed the status of T2553: set interface ethN vif-s nnnn does not commit from Open to In progress.
Jun 5 2020, 3:28 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2522: Python CLI.

@thomas-mangin that's great if the POC already has the above - I'm on board with making it the replacement for vbash in that case. I can live without word jumping and line deletion (for now) if it has tab completion and history (I will miss reverse history search a lot as it doesn't search just the beginning of the line but the whole line for the pattern, I'm assuming prompt-toolkit just searches the beginning?). I do need to test it when I get some time to see if anything is still missing.

Jun 5 2020, 3:23 PM · VyOS 2.0.x
afics created T2553: set interface ethN vif-s nnnn does not commit.
Jun 5 2020, 2:52 PM · VyOS 1.3 Equuleus (1.3.0)
runar added a comment to T2549: repository restructuration suggestions.

About rollback, i'm wondering about a try:expect loop around apply() that will catch faults and trigger a rollback() to restore old files etc.
The rollback won't be a 100% abort, because vyatta-cfg would not rollback subsystems that have allready been configured.. but we will get a pr. Subsystem rollback and thats a start :) to get a full rollback wee need to change the backend or the executor in the backend.

Jun 5 2020, 2:43 PM · VyOS 2.0.x
thomas-mangin added a comment to T2549: repository restructuration suggestions.

generate should make a backup of the previous file before generating the new one. It will then make it possible to create the rollback as a file move and service reload.

Jun 5 2020, 2:39 PM · VyOS 2.0.x
thomas-mangin added a comment to T2522: Python CLI.

@jjakob the code can be installed on a router (using my vyos update tool - after running vyos setup router )

Jun 5 2020, 2:33 PM · VyOS 2.0.x
jjakob added a comment to T2549: repository restructuration suggestions.

To add my 2 cents:

Jun 5 2020, 2:02 PM · VyOS 2.0.x
jjakob added a comment to T2542: OpenVPN client tap interfaces not coming up.

Another possibility would be to modify the VTunIf's bridgeable parameter when creating it. That wouldn't require a different name for tap and all the config migration that comes with it, but I don't know if it's possible.

Jun 5 2020, 1:41 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2542: OpenVPN client tap interfaces not coming up.

I also don't think we can find out whether a interface is tun or tap from the up/down script (no parameter or environment variable seems to tell it this) so it'd be good if tun and tap had different names due to this too. It would require migrating the name of existing interfaces (from vtun to vtap if tunnel type is tap) under interfaces openvpn, interfaces bridge member, service router-advert, firewall, nat, possibly other places as well.

Jun 5 2020, 1:38 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob renamed T2542: OpenVPN client tap interfaces not coming up from OpenVPN loose config to OpenVPN client tap interfaces not coming up.
Jun 5 2020, 1:29 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2550: OpenVPN: IPv4 not working in client mode.

What happens when one remote-host is IPv4 and one is IPv6? The proposed fix would leave the protocol as udp6 in that case and the error would still be there.

Jun 5 2020, 1:25 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob merged T2552: [BUG] commit-archive domain recognition error into T2468: Passwords with special characters fail in commit-archive.
Jun 5 2020, 1:17 PM · VyOS Rolling, Bugs
jjakob added a comment to T2522: Python CLI.

Writing the config parsing, editing, committing and saving shouldn't be that hard.
Re-implementing completion with the current set of features would be very hard.

Jun 5 2020, 1:10 PM · VyOS 2.0.x
jjakob added a comment to T2515: Ethernet interface is automatically disabled when removing it from bond.

A workaround would be to simply call interfaces-ethernet.py from the bond script itself after it removes it from the bond.
The consequence of migrating bond member config from the interface node to the bond node, the same problem exists for bridges as well.

Jun 5 2020, 12:48 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2542: OpenVPN client tap interfaces not coming up.

Also regarding bridging: the current VTunIf says vtun is bridgeable. I doubt bridging a tun interface is wanted as that's a purely L3 tunnel. As the bridge member config syntax places the members under the bridge interface, the bridge interface determines if a interface is bridgeable by looking at its class definition. Thus to make openvpn in tun mode not bridgeable and tap mode bridgeable, those would need to be 2 different classes with different interface names ('vtun' and 'vtap'?). A hackish way is possible by making the bridge code check the openvpn config directly, but I highly dislike hackish solutions. Even T2241 was a 'hackish' solution that was necessary due to a previous bridge syntax migration without thinking about the consequences of it (moving the bridge member config under the bridge code makes syntactical sense, but it requires hackish workarounds like T2241 with the curernt way the config system operates)

Jun 5 2020, 12:40 PM · VyOS 1.3 Equuleus (1.3.0)
jjakob added a comment to T2542: OpenVPN client tap interfaces not coming up.

Looking at the above errors:

Jun 5 2020, 12:32 PM · VyOS 1.3 Equuleus (1.3.0)