summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-07wwan: T2529: migrate device from ttyUSB to usbXbY.YpZ.ZChristian Poessinger
During testing it was discovered that there is a well known problem (we had for ethernet interfaces) also in the serial port world. They will be enumerated and mapped to /dev/ttyUSBxxx differently from boot to boot. This is especially painful on my development APU4 board which also has a Sierra Wireless MC7710 LTE module installed. The serial port will toggle between ttyUSB2 and ttyUSB5 depending on the amount of serial port extenders attached (FT4232H). The shipped udev rule (/usr/lib/udev/rules.d/60-serial.rules) partly solves this by enumerating the devices into /dev/serial/by-id folder with their name and serial number - it's a very good idea but I've found that not all of the FT4232H dongles have a serial number programmed - this leads to the situation that when you plug in two cables with both having serial number 0 - only one device symlink will appear - the previous one is always overwritten by the latter one. Derive /usr/lib/udev/rules.d/60-serial.rules and create a /dev/serial/by-bus directory and group devices by attached USB root port. vyos@vyos:~$ find /dev/serial/by-bus/ -name usb* -exec basename {} \; | sort usb0b1.3p1.0 usb0b1.3p1.2 usb0b1.3p1.3 usb0b2.4p1.0 usb0b2.4p1.1 usb0b2.4p1.2 usb0b2.4p1.3 So we have USB root 0 with bus 1.3 and port 1.0. The enumeration is constant accross reboots.
2020-06-07udev: T2490: add persistent USB device filesChristian Poessinger
During testing it was discovered that on 5 out of 10 reboots the USB enumeration/mapping from physical port to /dev/ttyUSB is different. The root cause is that it's a FIFO so first found/loaded driver module will be assigned ttyUSB0. This mixed up the serial interfaces of my FTDI chips and my connected Sierra Wireless MC7710 card which was no longer functioning as it now was mapped to a different USB interface. The solution is a udev rule which persistently maps the USB-tree-device to a device file in /dev. Wait? isn't this what /dev/serial/by-{id,path} is for? Correct, it does the very same thing but the problem is as follows: * by-path uses device file names which also incorporate the parent bus system, this results in "pci-0000:00:10.0-usb-0:2.4:1.0-port0" * by-id will overwrite the assigned device symlink if a new USB device with the same name appears. This happens to some FTDI devices with no serial number programmed so the device added last wins and will be the only one in the by-id folder - cruel world! This commit adds a new directory /dev/serial/by-bus which holds the following device files (as example): $ ls -1 /dev/serial/by-bus/ usb0b1.3p1.0 usb0b1.3p1.2 usb0b1.3p1.3 usb0b2.4p1.0 usb0b2.4p1.1 usb0b2.4p1.2 usb0b2.4p1.3
2020-06-07op-mode: T2559: add "show environment sensors" commandChristian Poessinger
vyos@vmware:~$ show environment sensors VyOS running under hypervisor, no sensors available vyos@apu4:~$ show environment sensors ath10k_hwmon-pci-0500 temp1: N/A k10temp-pci-00c3 temp1: +54.6°C (high = +70.0°C) (crit = +105.0°C, hyst = +104.0°C) fam15h_power-pci-00c4 power1: 3.28 W (interval = 0.01 s, crit = 6.00 W)
2020-06-07op-mode: version: remove unused import statementsChristian Poessinger
2020-06-07op-mode: ethernet: T2546: present offload output in tableChristian Poessinger
- remove first line from output (sed -e 1d) - remove leading tab indention (sed -e 's/^\t*//g') - remove colons (sed -e 's/://') - align output vertically (column -t -s' ')
2020-06-07op-mode: ethernet: T2546: do not display fixed offload optionsChristian Poessinger
[fixed] options returned by ethtool -k mean that they can not be change and thus offloading can neither be enabled nor disabled. It makes no sense to display those parameters at all.
2020-06-06op-mode: T2546: migrate show interfaces tunnel,input,pseudo-ethernet,l2tpv3 ...Christian Poessinger
Migrate additional show commands to XML * show interfaces tunnel ... * show interfaces input ... * show interfaces pseudo-ethernet ... * show interfaces l2tpv3 ... * show interfaces bridge ... * show interfaces vti ... * show interfaces vxlan ...
2020-06-06op-mode: ethernet: T2546: add "show interfaces loopback"Christian Poessinger
2020-06-06op-mode: add help text for "show mpls"Christian Poessinger
2020-06-06op-mode: add help text for "show protocols"Christian Poessinger
2020-06-06op-mode: rename show-arp.xml to show-protocols-static.xmlChristian Poessinger
2020-06-06dhcpv6-pd: T2551: fixup configuration pathChristian Poessinger
Commit 728b1feaf744 ("dhcpv6-pd: T2551: fix prefix length not set in config") reworked the way the configuration path is accesses on the individual interfaces, but it was missed out to apply it correctly when reading in sla-len and sla-id values.
2020-06-06dhcpv6-pd: T2551: fix prefix length not set in configChristian Poessinger
Retrieving the CLI nodes from current config was missed out and only implemented for PPPoE.
2020-06-06isis: T2495: exclude generated nodes from packageChristian Poessinger
Python developers can just comment the line.
2020-06-06op-mode: ethernet: T2546: add possibility to identify ethernet portChristian Poessinger
show interfaces ethernet eth0 identify
2020-06-06isis: T2495: add XML definitions for "protocol isis"Viacheslav Hletenko
2020-06-06op-mode: dummy: T2546: add show interfaces commandChristian Poessinger
2020-06-06op-mode: ethernet: T2546: fix "show interfaces ethernet eth0"Christian Poessinger
Command node was missing.
2020-06-05dhcpv6-pd: T421: workaround for non existing interfacesChristian Poessinger
When DHCPv6-PD is configured to delegate a prefix to a non existing interface, it is restarted (systemd default) but will then hit the restart rate-limit which disables the service entirely. As VyOS currently has no "hook" to be called once an interface goes online we need this "try and error" approach until there is a way to deal with it. This behavior can be reproduced when delegating an IPv6 prefix to a bridge interface as a bridge interface will always be started after all interfaces have been configured. We will now restart dhcp6c as long as the requested interface is online.
2020-06-05op-mode: ethernet: T2546: add vif subcommandChristian Poessinger
2020-06-05Merge pull request #444 from jjakob/vif-s-fix-T2553Christian Poessinger
vlan: T2553: fix vif-s regression
2020-06-05vlan: T2553: fix vif-s regressionJernej Jakob
A typo caused vif-s interfaces to not commit.
2020-06-05Merge pull request #443 from mrozentsvayg/openvpn-T2550-ipv4-remote-hostChristian Poessinger
openvpn: T2550: fix for IPv4 remote-host addresses
2020-06-04openvpn: T2550: fix for IPv4 remote-host addressesMikhail Rozentsvayg
Commit bb9f998 added IPv6 support for OpenVPN, but IPv4 only configurations stopped working (Address family for hostname not supported) Commit fc467519 fixed some scenarios by using IPv4 protocols if 'local-host' is IPv4 address, but the client mode is using 'remote-host' instead and was still broken. This commit in addition to 'local-host' also checks all the 'remote-host' addresses.
2020-06-05T2548: interface address does not support IP network definitionChristian Poessinger
When migrating all single instances of the IP address XML definition to the reusable include file an error was ported, too. This allowed an interface be assigned an IPv4/IPv6 network address es e.g. 192.0.2.0/24 which is invalid. The validator has been fixed to only allow IPv4/IPv6 host addresses instead.
2020-06-05Merge pull request #441 from sever-sever/xml-conf-ripChristian Poessinger
rip-xml: T2547: XML for conf-mode protocol RIP
2020-06-04Revert "add dependency on debian tshark package"Christian Poessinger
This reverts commit 44355e6525daec62120601073065f63c9f9a7993.
2020-06-04op-mode: T2546: add "show monitoring" commandChristian Poessinger
2020-06-04op-mode: T2546: add "show log firewall|image" commandsChristian Poessinger
2020-06-04op-mode: T2546: add "show login" commandsChristian Poessinger
2020-06-04Merge pull request #442 from L6NqLW/T2527Christian Poessinger
bonding: T2527: delete the last interface from bond
2020-06-04rip-xml: T2547: XML for conf-mode protocol RIPsever-sever
2020-06-03T2546: fix "show log" command - restore node.defChristian Poessinger
2020-06-03T2546: add "show log vpn sstp"Christian Poessinger
2020-06-03T2546: fix "show log vpn" after migrating to Accel-PPPChristian Poessinger
2020-06-03Enable debug mode to build-command-templatesChristian Poessinger
2020-06-03T2546: migrate "show log" to vyos-1xChristian Poessinger
2020-06-03T2546: migrate "show poweroff" to vyos-1xChristian Poessinger
2020-06-03T2546: migrate "show reboot" to vyos-1xChristian Poessinger
2020-06-03op-mode: migrate line ending from dosChristian Poessinger
2020-06-03op-mode: T2546: migrate "show license"Christian Poessinger
2020-06-03op-mode: ethernet: T2546: migrate basic commandsChristian Poessinger
- show interfaces ethernet eth0 physical - show interfaces ethernet eth0 physical offload - show interfaces ethernet eth0 statistics - show interfaces ethernet eth0 transceiver
2020-06-02Merge pull request #440 from thomas-mangin/T2542Christian Poessinger
vtun: T2542: do not attempt to create the interface
2020-06-02pppoe: T2542: do not attempt to create the pppoe interfaceThomas Mangin
2020-06-02vtun: T2542: do not attempt to create the vtun interfaceThomas Mangin
2020-06-01dns: dynamic: op-mode: provide "restart dns dynamic" commandChristian Poessinger
... this is actually a copy of the weird "update dns dynamic" command. Some users like restart more thus both CLI notions will call the same backend script .
2020-06-01dns: dynamic: op-mode: rename XMLChristian Poessinger
2020-06-01bgp: T2387: proof-of-concept using get_config_dict()Christian Poessinger
2020-06-01bgp: T2387: move "aggregate address" to XML includeChristian Poessinger
2020-06-01wake-on-lan: op-mode: T2526: add CLI implementationChristian Poessinger
Wake up host vyos@vyos:~$ wake-on-lan interface eth0.201 host a:b:c:d:e:f Wake up invalid host vyos@vyos:~$ wake-on-lan interface eth0.201 host a:b:c:d:e:f:f etherwake: The Magic Packet host address must be specified as - a station address, 00:11:22:33:44:55, or - a hostname with a known 'ethers' entry.