summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2019-07-05 21:36:16 +0200
committerRunar Borge <runar@borge.nu>2019-07-05 21:36:16 +0200
commitdadc594e08c41b6bc912d7348b8e762c25b8d2c4 (patch)
treeda3283c64f003976613435407e7943c96b807e6d /templates
parent8c7b09c1487547df339037cfae861d78bd51a17f (diff)
downloadvyatta-op-dadc594e08c41b6bc912d7348b8e762c25b8d2c4.tar.gz
vyatta-op-dadc594e08c41b6bc912d7348b8e762c25b8d2c4.zip
T1499: Allow for usage of systemd interface mappings
Diffstat (limited to 'templates')
-rw-r--r--templates/clear/interfaces/ethernet/node.tag/node.def2
-rw-r--r--templates/show/dhcp/client/leases/interface/node.tag/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/clear/interfaces/ethernet/node.tag/node.def b/templates/clear/interfaces/ethernet/node.tag/node.def
index 17e07e1..ca48b57 100644
--- a/templates/clear/interfaces/ethernet/node.tag/node.def
+++ b/templates/clear/interfaces/ethernet/node.tag/node.def
@@ -1,4 +1,4 @@
help: Clear interface information for a given ethernet interface
allowed: local -a array ;
- array=( /sys/class/net/eth* ) ;
+ array=( /sys/class/net/eth* /sys/class/net/en* ) ;
echo -n ${array[@]##*/}
diff --git a/templates/show/dhcp/client/leases/interface/node.tag/node.def b/templates/show/dhcp/client/leases/interface/node.tag/node.def
index b0120d0..a987d28 100644
--- a/templates/show/dhcp/client/leases/interface/node.tag/node.def
+++ b/templates/show/dhcp/client/leases/interface/node.tag/node.def
@@ -1,5 +1,5 @@
help: Show DHCP client information for interface
allowed: local -a array ;
- array=( /sys/class/net/eth* ) ;
+ array=( /sys/class/net/eth* /sys/class/net/en* ) ;
echo -n ${array[@]##*/}
run: /opt/vyatta/bin/vyatta-show-dhclient.pl "$6"