summaryrefslogtreecommitdiff
path: root/templates/show/interfaces/loopback
diff options
context:
space:
mode:
Diffstat (limited to 'templates/show/interfaces/loopback')
-rw-r--r--templates/show/interfaces/loopback/node.def3
-rw-r--r--templates/show/interfaces/loopback/node.tag/node.def5
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/show/interfaces/loopback/node.def b/templates/show/interfaces/loopback/node.def
new file mode 100644
index 0000000..45fa122
--- /dev/null
+++ b/templates/show/interfaces/loopback/node.def
@@ -0,0 +1,3 @@
+help: "Show loopback interface information"
+run: ${ofr_bindir}/show_interfaces_loopback
+
diff --git a/templates/show/interfaces/loopback/node.tag/node.def b/templates/show/interfaces/loopback/node.tag/node.def
new file mode 100644
index 0000000..a9d46b8
--- /dev/null
+++ b/templates/show/interfaces/loopback/node.tag/node.def
@@ -0,0 +1,5 @@
+help: "Show given loopback interface information"
+allowed: local -a array ;
+ array=( /sys/class/net/lo* ) ;
+ echo -n ${array[@]##*/}
+run: ${ofr_bindir}/show_interfaces_loopback $4