Unsure if this is indeed a bug, or related to my ISO building process, so posting here instead of opening a bug in https://vyos.dev/. If you determine it to be a bug, I’ll happily create one on https://vyos.dev/.
Problem
Build latest ISO according to manual, install resulting ISO on router, reboot. Error applying config, specifically:
vyos@gw# configure
[edit]
vyos@gw# load /config/config.boot
Loading configuration from '/config/config.boot'
cLoad complete. Use 'commit' to make changes effective.
[edit]
vyos@gw# compare
[edit interfaces ethernet eth2]
+disable
[edit interfaces ethernet eth3]
+disable
[edit protocols static]
+route 1.0.0.1/32 {
+ dhcp-interface eth1.261
+}
+route 1.1.1.1/32 {
+ dhcp-interface eth0
+}
+route 8.8.4.4/32 {
+ dhcp-interface eth1.261
+}
+route 8.8.8.8/32 {
+ dhcp-interface eth0
+}
+route 45.90.28.0/32 {
+ dhcp-interface eth0
+}
+route 45.90.28.100/32 {
+ dhcp-interface eth1.261
+}
+route 45.90.30.0/32 {
+ dhcp-interface eth0
+}
+route 45.90.30.100/32 {
+ dhcp-interface eth1.261
+}
[edit]
vyos@gw# commit
Could not set flowcontrol for eth2
[ protocols static route 8.8.4.4/32 dhcp-interface eth1.261 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 8.8.4.4/32 dhcp-interface eth1.261 ]
Invalid value
[[protocols static route 8.8.4.4/32]] failed
[ protocols static route 45.90.30.100/32 dhcp-interface eth1.261 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 45.90.30.100/32 dhcp-interface eth1.261 ]
Invalid value
[[protocols static route 45.90.30.100/32]] failed
[ protocols static route 45.90.30.0/32 dhcp-interface eth0 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 45.90.30.0/32 dhcp-interface eth0 ]
Invalid value
[[protocols static route 45.90.30.0/32]] failed
[ protocols static route 1.1.1.1/32 dhcp-interface eth0 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 1.1.1.1/32 dhcp-interface eth0 ]
Invalid value
[[protocols static route 1.1.1.1/32]] failed
[ protocols static route 8.8.8.8/32 dhcp-interface eth0 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 8.8.8.8/32 dhcp-interface eth0 ]
Invalid value
[[protocols static route 8.8.8.8/32]] failed
[ protocols static route 45.90.28.100/32 dhcp-interface eth1.261 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 45.90.28.100/32 dhcp-interface eth1.261 ]
Invalid value
[[protocols static route 45.90.28.100/32]] failed
[ protocols static route 1.0.0.1/32 dhcp-interface eth1.261 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 1.0.0.1/32 dhcp-interface eth1.261 ]
Invalid value
[[protocols static route 1.0.0.1/32]] failed
[ protocols static route 45.90.28.0/32 dhcp-interface eth0 ]
Could not execute validator /usr/libexec/vyos/validators/interface-name
[ protocols static route 45.90.28.0/32 dhcp-interface eth0 ]
Invalid value
[[protocols static route 45.90.28.0/32]] failed
Commit failed
System version:
vyos@gw:/usr/libexec/vyos/validators$ show version
Version: VyOS 1.3-rolling-202302181105
Release train: equuleus
Built by: [email protected]
Built on: Sat 18 Feb 2023 11:05 UTC
Build UUID: 6e9d1bd3-bb68-4c2e-aefe-62089d70a3fc
Build commit ID: c4521c495a5dc6
Architecture: x86_64
Boot via: installed image
System type: bare metal
Hardware vendor: Deciso B.V.
Hardware model: NetBoard-A10
Hardware S/N:
Hardware UUID: 12345678-1234-5678-90ab-cddeefaabbcc
Copyright: VyOS maintainers and contributors
The validator indeed doesn’t exist:
vyos@gw:/usr/libexec/vyos/validators$ ls -la
total 2214
drwxr-xr-x 2 root root 703 Feb 18 12:10 .
drwxr-xr-x 1 root root 4096 Feb 18 12:10 ..
-rwxr-xr-x 1 root root 470 Jan 4 2021 allowed-vlan
-rwxr-xr-x 1 root root 846 Jan 4 2021 base64
-rwxr-xr-x 1 root root 1097 Jan 4 2021 dotted-decimal
-rwxr-xr-x 1 root root 2111 Jan 4 2021 file-exists
-rwxr-xr-x 1 root root 1345136 Apr 18 2021 file-path
-rwxr-xr-x 1 root root 880 Jan 4 2021 fqdn
-rwxr-xr-x 1 root root 75 Jan 4 2021 interface-address
-rwxr-xr-x 1 root root 42 Jan 4 2021 ip-address
-rwxr-xr-x 1 root root 40 Jan 4 2021 ip-cidr
-rwxr-xr-x 1 root root 40 Jan 4 2021 ip-host
-rwxr-xr-x 1 root root 39 Jan 4 2021 ip-prefix
-rwxr-xr-x 1 root root 1499 Jan 4 2021 ip-protocol
-rwxr-xr-x 1 root root 36 Jan 4 2021 ipv4
-rwxr-xr-x 1 root root 43 Jan 4 2021 ipv4-address
-rwxr-xr-x 1 root root 117 Jan 4 2021 ipv4-address-exclude
-rwxr-xr-x 1 root root 41 Jan 4 2021 ipv4-host
-rwxr-xr-x 1 root root 81 Jan 4 2021 ipv4-multicast
-rwxr-xr-x 1 root root 40 Jan 4 2021 ipv4-prefix
-rwxr-xr-x 1 root root 116 Jan 4 2021 ipv4-prefix-exclude
-rwxr-xr-x 1 root root 750 Jan 4 2021 ipv4-range
-rwxr-xr-x 1 root root 115 Jan 4 2021 ipv4-range-exclude
-rwxr-xr-x 1 root root 36 Jan 4 2021 ipv6
-rwxr-xr-x 1 root root 43 Jan 4 2021 ipv6-address
-rwxr-xr-x 1 root root 891 Jan 4 2021 ipv6-duid
-rwxr-xr-x 1 root root 302 Jan 4 2021 ipv6-eui64-prefix
-rwxr-xr-x 1 root root 41 Jan 4 2021 ipv6-host
-rwxr-xr-x 1 root root 237 Jan 4 2021 ipv6-link-local
-rwxr-xr-x 1 root root 81 Jan 4 2021 ipv6-multicast
-rwxr-xr-x 1 root root 40 Jan 4 2021 ipv6-prefix
-rwxr-xr-x 1 root root 893 Jan 4 2021 mac-address
-rwxr-xr-x 1 root root 881944 Apr 18 2021 numeric
-rwxr-xr-x 1 root root 1187 Jan 4 2021 port-range
-rwxr-xr-x 1 root root 1903 Jan 4 2021 range
-rwxr-xr-x 1 root root 1515 Jan 4 2021 script
-rwxr-xr-x 1 root root 1187 Jan 4 2021 timezone
-rwxr-xr-x 1 root root 1345 Jan 4 2021 vrf-name
-rwxr-xr-x 1 root root 862 Jan 4 2021 wireless-phy
This seems related to commit validators: T4875: use file-path to replace validator 'interface-name' · vyos/vyos-1x@1bfe506 · GitHub. However, the config system doesn’t seem to have picked it up.
Any ideas?