summaryrefslogtreecommitdiff
path: root/templates/protocols/static
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-03-11 12:48:08 -0700
committerhagbard <vyosdev@derith.de>2019-03-11 12:48:08 -0700
commit0d68115b3ef7dbcfc4ff9a19c4d2e51e297953de (patch)
tree278a14f5c4d1f20327baac90dc6228bee59c8a03 /templates/protocols/static
parent0f119c80990f0bff0cbff50e29059951a457afc4 (diff)
downloadvyatta-cfg-quagga-0d68115b3ef7dbcfc4ff9a19c4d2e51e297953de.tar.gz
vyatta-cfg-quagga-0d68115b3ef7dbcfc4ff9a19c4d2e51e297953de.zip
[arp] T1288 - 'protocols static arp' moved into vyos-1x
Diffstat (limited to 'templates/protocols/static')
-rw-r--r--templates/protocols/static/arp/node.def32
-rw-r--r--templates/protocols/static/arp/node.tag/hwaddr/node.def5
2 files changed, 0 insertions, 37 deletions
diff --git a/templates/protocols/static/arp/node.def b/templates/protocols/static/arp/node.def
deleted file mode 100644
index 395454ef..00000000
--- a/templates/protocols/static/arp/node.def
+++ /dev/null
@@ -1,32 +0,0 @@
-tag:
-type: ipv4
-help: Static ARP translation
-val_help: IPv4 destination address
-
-#
-# All the work is done here in the "end:" tag. There are four possible cases:
-#
-# 1) A new node and possibly sub-tree with hwaddr has been created
-# 2) Value of hwaddr node in sub-tree has been changed
-# 3) The hwaddr node in sub-tree has been deleted
-# 4) This node (and hence entire sub-tree) has been deleted
-#
-# The flow is the same in all cases. First, we delete any
-# previous static ARP translation that may be in place for this
-# IP addr. This will typically fail in case (1) and in case (4) if the
-# hwaddr node had been previously deleted. Then, if a hwaddr is defined,
-# we add a new startic ARP translation for this IP addr pointing to that
-# hwaddr. This should always succeed, so we don't try to hide error
-# messages from the user.
-#
-# We always force a successful return in order to prevent transient
-# failures of the "arp" command from failing the commit.
-#
-end:
- ipaddr=$VAR(@)
- hwaddr=$VAR(hwaddr/@)
- /usr/sbin/arp -d $ipaddr > /dev/null
- if [ -n "$hwaddr" ]; then
- /usr/sbin/arp -s $ipaddr $hwaddr
- fi
- exit 0
diff --git a/templates/protocols/static/arp/node.tag/hwaddr/node.def b/templates/protocols/static/arp/node.tag/hwaddr/node.def
deleted file mode 100644
index d3181160..00000000
--- a/templates/protocols/static/arp/node.tag/hwaddr/node.def
+++ /dev/null
@@ -1,5 +0,0 @@
-type: macaddr
-help: Hardware protocol (e.g. MAC) address to translate to
-val_help: Hardware (MAC) address
-
-