From 2fa8cf6598542e5bdf13e99da22435690252912b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 3 Apr 2020 14:26:28 +0200 Subject: interfaces: XML: constraint: add start of line ^ to regex --- interface-definitions/interfaces-bonding.xml.in | 2 +- interface-definitions/interfaces-bridge.xml.in | 2 +- interface-definitions/interfaces-dummy.xml.in | 2 +- interface-definitions/interfaces-ethernet.xml.in | 2 +- interface-definitions/interfaces-geneve.xml.in | 2 +- interface-definitions/interfaces-l2tpv3.xml.in | 2 +- interface-definitions/interfaces-loopback.xml.in | 2 +- interface-definitions/interfaces-openvpn.xml.in | 2 +- interface-definitions/interfaces-pppoe.xml.in | 2 +- interface-definitions/interfaces-pseudo-ethernet.xml.in | 2 +- interface-definitions/interfaces-tunnel.xml.in | 2 +- interface-definitions/interfaces-vxlan.xml.in | 2 +- interface-definitions/interfaces-wireguard.xml.in | 2 +- interface-definitions/interfaces-wireless.xml.in | 2 +- interface-definitions/interfaces-wirelessmodem.xml.in | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) (limited to 'interface-definitions') diff --git a/interface-definitions/interfaces-bonding.xml.in b/interface-definitions/interfaces-bonding.xml.in index 166f23285..07a6abd30 100644 --- a/interface-definitions/interfaces-bonding.xml.in +++ b/interface-definitions/interfaces-bonding.xml.in @@ -7,7 +7,7 @@ Bonding Interface/Link Aggregation 320 - bond[0-9]+$ + ^bond[0-9]+$ Bonding interface must be named bondN diff --git a/interface-definitions/interfaces-bridge.xml.in b/interface-definitions/interfaces-bridge.xml.in index a0a309fb7..818bc9c0e 100644 --- a/interface-definitions/interfaces-bridge.xml.in +++ b/interface-definitions/interfaces-bridge.xml.in @@ -7,7 +7,7 @@ Bridge Interface 489 - br[0-9]+$ + ^br[0-9]+$ Bridge interface must be named brN diff --git a/interface-definitions/interfaces-dummy.xml.in b/interface-definitions/interfaces-dummy.xml.in index 5229e602a..135adfc10 100644 --- a/interface-definitions/interfaces-dummy.xml.in +++ b/interface-definitions/interfaces-dummy.xml.in @@ -7,7 +7,7 @@ Dummy Interface 300 - dum[0-9]+$ + ^dum[0-9]+$ Dummy interface must be named dumN diff --git a/interface-definitions/interfaces-ethernet.xml.in b/interface-definitions/interfaces-ethernet.xml.in index 2b461cfaa..f8ec26d04 100644 --- a/interface-definitions/interfaces-ethernet.xml.in +++ b/interface-definitions/interfaces-ethernet.xml.in @@ -7,7 +7,7 @@ Ethernet Interface 318 - ((eth|lan)[0-9]+|(eno|ens|enp|enx).+)$ + ^((eth|lan)[0-9]+|(eno|ens|enp|enx).+)$ Invalid Ethernet interface name diff --git a/interface-definitions/interfaces-geneve.xml.in b/interface-definitions/interfaces-geneve.xml.in index a6406ffc9..31a3ebb7a 100644 --- a/interface-definitions/interfaces-geneve.xml.in +++ b/interface-definitions/interfaces-geneve.xml.in @@ -7,7 +7,7 @@ Generic Network Virtualization Encapsulation (GENEVE) Interface 460 - gnv[0-9]+$ + ^gnv[0-9]+$ GENEVE interface must be named gnvN diff --git a/interface-definitions/interfaces-l2tpv3.xml.in b/interface-definitions/interfaces-l2tpv3.xml.in index 0ebeebf0f..30dd9b604 100644 --- a/interface-definitions/interfaces-l2tpv3.xml.in +++ b/interface-definitions/interfaces-l2tpv3.xml.in @@ -7,7 +7,7 @@ Layer 2 Tunnel Protocol Version 3 (L2TPv3) Interface 485 - l2tpeth[0-9]+$ + ^l2tpeth[0-9]+$ L2TPv3 interface must be named l2tpethN diff --git a/interface-definitions/interfaces-loopback.xml.in b/interface-definitions/interfaces-loopback.xml.in index ddbfad763..97d5bab90 100644 --- a/interface-definitions/interfaces-loopback.xml.in +++ b/interface-definitions/interfaces-loopback.xml.in @@ -7,7 +7,7 @@ Loopback Interface 300 - lo$ + ^lo$ Loopback interface must be named lo diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in index cd5b5f29e..92bac3fab 100644 --- a/interface-definitions/interfaces-openvpn.xml.in +++ b/interface-definitions/interfaces-openvpn.xml.in @@ -7,7 +7,7 @@ OpenVPN Tunnel Interface 460 - vtun[0-9]+$ + ^vtun[0-9]+$ OpenVPN tunnel interface must be named vtunN diff --git a/interface-definitions/interfaces-pppoe.xml.in b/interface-definitions/interfaces-pppoe.xml.in index bbaff5f04..bc7995918 100644 --- a/interface-definitions/interfaces-pppoe.xml.in +++ b/interface-definitions/interfaces-pppoe.xml.in @@ -7,7 +7,7 @@ Point-to-Point Protocol over Ethernet (PPPoE) 321 - pppoe[0-9]+$ + ^pppoe[0-9]+$ PPPoE interface must be named pppoeN diff --git a/interface-definitions/interfaces-pseudo-ethernet.xml.in b/interface-definitions/interfaces-pseudo-ethernet.xml.in index 772056bd2..0c56e4e4b 100644 --- a/interface-definitions/interfaces-pseudo-ethernet.xml.in +++ b/interface-definitions/interfaces-pseudo-ethernet.xml.in @@ -7,7 +7,7 @@ Pseudo Ethernet 319 - peth[0-9]+$ + ^peth[0-9]+$ Pseudo Ethernet interface must be named pethN diff --git a/interface-definitions/interfaces-tunnel.xml.in b/interface-definitions/interfaces-tunnel.xml.in index fe4a81f92..3ba82067f 100644 --- a/interface-definitions/interfaces-tunnel.xml.in +++ b/interface-definitions/interfaces-tunnel.xml.in @@ -7,7 +7,7 @@ Tunnel interface 380 - tun[0-9]+$ + ^tun[0-9]+$ tunnel interface must be named tunN diff --git a/interface-definitions/interfaces-vxlan.xml.in b/interface-definitions/interfaces-vxlan.xml.in index 70c45d1fd..3108817b3 100644 --- a/interface-definitions/interfaces-vxlan.xml.in +++ b/interface-definitions/interfaces-vxlan.xml.in @@ -7,7 +7,7 @@ Virtual Extensible LAN (VXLAN) Interface 460 - vxlan[0-9]+$ + ^vxlan[0-9]+$ VXLAN interface must be named vxlanN diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in index dd4a73efd..d461156b3 100644 --- a/interface-definitions/interfaces-wireguard.xml.in +++ b/interface-definitions/interfaces-wireguard.xml.in @@ -7,7 +7,7 @@ WireGuard Interface 459 - wg[0-9]+$ + ^wg[0-9]+$ WireGuard interface must be named wgN diff --git a/interface-definitions/interfaces-wireless.xml.in b/interface-definitions/interfaces-wireless.xml.in index 2c224987e..12736510b 100644 --- a/interface-definitions/interfaces-wireless.xml.in +++ b/interface-definitions/interfaces-wireless.xml.in @@ -7,7 +7,7 @@ Wireless (WiFi/WLAN) Network Interface 400 - wlan[0-9]+$ + ^wlan[0-9]+$ Wireless interface must be named wlanN diff --git a/interface-definitions/interfaces-wirelessmodem.xml.in b/interface-definitions/interfaces-wirelessmodem.xml.in index 1e1f23717..2ec9205e0 100644 --- a/interface-definitions/interfaces-wirelessmodem.xml.in +++ b/interface-definitions/interfaces-wirelessmodem.xml.in @@ -7,7 +7,7 @@ Wireless Modem (WWAN) Interface 350 - wlm[0-9]+$ + ^wlm[0-9]+$ Wireless Modem interface must be named wlmN -- cgit v1.2.3