Oh, nice!
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Apr 11 2020
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)
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?
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 foreverThis 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)
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 10 2020
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?)
Change description since last update:
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
WIP: https://github.com/vyos/vyos-1x/pull/325
We won't do strict exclusion of client IPs from the server pool, but just print a warning if they overlap. This way old configs won't require migration and will still work, and new configurations will be able to manually set a smaller pool.
https://github.com/vyos/vyos-1x/pull/323
Bridged mode still doesn't work until T2064 is fixed, but at least the validation should be fixed.
15: eth1.100@eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state LOWERLAYERDOWN group default qlen 1000
link/ether 00:0d:b9:53:07:ed brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 scope global eth1.100
valid_lft forever preferred_lft foreveron-demand dialing and VRFs are now mutually exlcusive. As VRF is a new feature of 1.3 this won't break existing 1.2 LTS devices.
Moved to vif-c
Apr 9 2020
just that the interface can be added to the VRF
What you mean by "bindable"?
It would appear this commit is the source of the problem - client-config-dir was removed but I don't see anywhere it's re-added.
Thank you @c-po - I can confirm removal of connect-on-demand fixes the problem.
I was under the, obviously mistaken, impression that I needed that command for PPPoE to self-establish on reboot. But I obviously don't as I've just rebooted with the latest 1.3-rolling-202004090909 and it's connected straight away and is working.
Vrfs are for now not supported in dynamic routing protocols, only static routing is for now possible. Se also comment in T2257
For now only static routing supports vrf, bgp, ospf and rip does not support vrf for time beeing. Support for this is being workes on, but its quite a large rewrite required to add support for this in bgp.
Thanks for the responsiveness to this request!
would it be possible to make both vif-s and vif-c interfaces bindable? or should I make a new feature request?
It let you know ufo could not be changed, but your interface will work :-)
Yes, it is as you have as file in /tmp/vyos.interface.debug' which turns on this debugging :-)
the Problem comes with the connect-on-demand option. As the default route setup was changed some days ago by me to support PPPoE for VRFs this introduced a regression (T2219).
@c-po Shure, config attached to task https://phabricator.vyos.net/T1315 (left-r1, left-r2, right-r1, right-r2)
Section "Autostart commands"