summaryrefslogtreecommitdiff
path: root/templates/protocols/snmp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-22 10:34:06 -0700
committerAn-Cheng Huang <ancheng@sydney.vyatta.com>2007-10-22 10:34:06 -0700
commitd34592273240b6ea91b82c479362bd88352b7f65 (patch)
tree2a1c759216e4abd921e1ecd87746925976e42927 /templates/protocols/snmp
parentd4e70f30421c5c48b256e0e272c91c7b6db2aa86 (diff)
parent92ee6e6c49cacad059478ad1a50ffa7a50ecd90e (diff)
downloadvyatta-cfg-quagga-d34592273240b6ea91b82c479362bd88352b7f65.tar.gz
vyatta-cfg-quagga-d34592273240b6ea91b82c479362bd88352b7f65.zip
Merge branch 'master' of phuket.vyatta.com:/usr/local/git/vyatta-cfg-system
Diffstat (limited to 'templates/protocols/snmp')
-rw-r--r--templates/protocols/snmp/community/node.def3
-rw-r--r--templates/protocols/snmp/community/node.tag/authorization/node.def7
-rw-r--r--templates/protocols/snmp/community/node.tag/node.def1
-rw-r--r--templates/protocols/snmp/contact/node.def2
-rw-r--r--templates/protocols/snmp/description/node.def2
-rw-r--r--templates/protocols/snmp/location/node.def3
-rw-r--r--templates/protocols/snmp/node.def9
-rw-r--r--templates/protocols/snmp/trap-target/node.def3
8 files changed, 30 insertions, 0 deletions
diff --git a/templates/protocols/snmp/community/node.def b/templates/protocols/snmp/community/node.def
new file mode 100644
index 00000000..18472af8
--- /dev/null
+++ b/templates/protocols/snmp/community/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: "Community name"
diff --git a/templates/protocols/snmp/community/node.tag/authorization/node.def b/templates/protocols/snmp/community/node.tag/authorization/node.def
new file mode 100644
index 00000000..b9960195
--- /dev/null
+++ b/templates/protocols/snmp/community/node.tag/authorization/node.def
@@ -0,0 +1,7 @@
+type: txt
+default: "ro"
+help: "Authorization type either (rw or ro)"
+syntax: $(@) in "ro", "rw"; "authorization type must be either rw or ro"
+
+
+
diff --git a/templates/protocols/snmp/community/node.tag/node.def b/templates/protocols/snmp/community/node.tag/node.def
new file mode 100644
index 00000000..410186c6
--- /dev/null
+++ b/templates/protocols/snmp/community/node.tag/node.def
@@ -0,0 +1 @@
+help: "Community options"
diff --git a/templates/protocols/snmp/contact/node.def b/templates/protocols/snmp/contact/node.def
new file mode 100644
index 00000000..970ed5fa
--- /dev/null
+++ b/templates/protocols/snmp/contact/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: "Contact information"
diff --git a/templates/protocols/snmp/description/node.def b/templates/protocols/snmp/description/node.def
new file mode 100644
index 00000000..d5566f58
--- /dev/null
+++ b/templates/protocols/snmp/description/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: "Description information"
diff --git a/templates/protocols/snmp/location/node.def b/templates/protocols/snmp/location/node.def
new file mode 100644
index 00000000..284e38a7
--- /dev/null
+++ b/templates/protocols/snmp/location/node.def
@@ -0,0 +1,3 @@
+type: txt
+help: "Location information"
+
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
new file mode 100644
index 00000000..269b64ed
--- /dev/null
+++ b/templates/protocols/snmp/node.def
@@ -0,0 +1,9 @@
+help: "Configure SNMP"
+create: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
+delete: "touch /tmp/snmp.\\$PPID"
+end: "if [ -f \"/tmp/snmp.\\$PPID\" ]; then \
+ /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
+ rm -rf /tmp/snmp.\\$PPID; \
+ else \
+ /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
+ fi; "
diff --git a/templates/protocols/snmp/trap-target/node.def b/templates/protocols/snmp/trap-target/node.def
new file mode 100644
index 00000000..1a7d5bae
--- /dev/null
+++ b/templates/protocols/snmp/trap-target/node.def
@@ -0,0 +1,3 @@
+multi:
+type: ipv4
+help: "IPv4 address of trap target"