summaryrefslogtreecommitdiff
path: root/templates/service/snmp/community
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-05 15:34:56 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-05 15:34:56 -0800
commitc5e6a28f5697e9448dbb343f5023709cbc2d3c8b (patch)
tree05d387c41900933fb729b7a6cfd0d0c98bfb92ea /templates/service/snmp/community
parentfa603975fdbbc7726dbb923e6cb2fc0649c28a98 (diff)
downloadvyatta-cfg-system-c5e6a28f5697e9448dbb343f5023709cbc2d3c8b.tar.gz
vyatta-cfg-system-c5e6a28f5697e9448dbb343f5023709cbc2d3c8b.zip
Change 'protocols snmp' to 'service snmp'
Bug 212 The entries in config under protocols were all routing protocols except SNMP which was an unfortunate original design choice. Config script does migration.
Diffstat (limited to 'templates/service/snmp/community')
-rw-r--r--templates/service/snmp/community/node.def3
-rw-r--r--templates/service/snmp/community/node.tag/authorization/node.def7
-rw-r--r--templates/service/snmp/community/node.tag/client/node.def3
-rw-r--r--templates/service/snmp/community/node.tag/network/node.def4
4 files changed, 17 insertions, 0 deletions
diff --git a/templates/service/snmp/community/node.def b/templates/service/snmp/community/node.def
new file mode 100644
index 00000000..cf95bc27
--- /dev/null
+++ b/templates/service/snmp/community/node.def
@@ -0,0 +1,3 @@
+tag:
+type: txt
+help: Set community name [REQUIRED]
diff --git a/templates/service/snmp/community/node.tag/authorization/node.def b/templates/service/snmp/community/node.tag/authorization/node.def
new file mode 100644
index 00000000..c8918d43
--- /dev/null
+++ b/templates/service/snmp/community/node.tag/authorization/node.def
@@ -0,0 +1,7 @@
+type: txt
+default: "ro"
+help: Set authorization type (rw or ro) (default: ro)
+syntax:expression: $VAR(@) in "ro", "rw"; "Authorization type must be either rw or ro"
+
+
+
diff --git a/templates/service/snmp/community/node.tag/client/node.def b/templates/service/snmp/community/node.tag/client/node.def
new file mode 100644
index 00000000..828faa97
--- /dev/null
+++ b/templates/service/snmp/community/node.tag/client/node.def
@@ -0,0 +1,3 @@
+multi:
+type: ipv4
+help: Set IP address of SNMP client allowed to contact system
diff --git a/templates/service/snmp/community/node.tag/network/node.def b/templates/service/snmp/community/node.tag/network/node.def
new file mode 100644
index 00000000..00a77d4b
--- /dev/null
+++ b/templates/service/snmp/community/node.tag/network/node.def
@@ -0,0 +1,4 @@
+multi:
+type: ipv4net
+help: Set subnet of SNMP client(s) allowed to contact system
+syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $VAR(@)"