summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:57:35 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-01-31 07:57:35 -0800
commit452e464e0685427cf8ebba908f169857416651f1 (patch)
tree85dde8bf5361c10d028448416ce5d522c15ff212 /templates/interfaces
parent7a12fbdf94d9a0a92d39801c57a783c536d94034 (diff)
downloadvyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.tar.gz
vyatta-cfg-firewall-452e464e0685427cf8ebba908f169857416651f1.zip
convert templates to new syntax
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/in/name/node.def14
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/in/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/local/name/node.def14
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/local/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/out/name/node.def14
-rw-r--r--templates/interfaces/ethernet/node.tag/firewall/out/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/name/node.def20
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/name/node.def18
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/name/node.def18
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/node.def2
14 files changed, 57 insertions, 57 deletions
diff --git a/templates/interfaces/ethernet/node.tag/firewall/in/name/node.def b/templates/interfaces/ethernet/node.tag/firewall/in/name/node.def
index 1ab0702..290e726 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/in/name/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/in/name/node.def
@@ -1,18 +1,18 @@
type: txt
-help: "Inbound interface filter name"
+help: Inbound interface filter name
-create: "sh -c \"echo create eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+create:expression: "sh -c \"echo create eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../@) $VAR(..) $VAR(@)\" "
-update: "sh -c \"echo update eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+update:expression: "sh -c \"echo update eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../@) $VAR(..) $VAR(@)\" "
-delete: "sh -c \"echo delete eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+delete:expression: "sh -c \"echo delete eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces delete $(../../../@) $(..) $(@)\" "
+--update-interfaces delete $VAR(../../../@) $VAR(..) $VAR(@)\" "
diff --git a/templates/interfaces/ethernet/node.tag/firewall/in/node.def b/templates/interfaces/ethernet/node.tag/firewall/in/node.def
index caa7172..7a9f156 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/in/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/in/node.def
@@ -1 +1 @@
-help: "Filter forwarded packets on inbound interface"
+help: Filter forwarded packets on inbound interface
diff --git a/templates/interfaces/ethernet/node.tag/firewall/local/name/node.def b/templates/interfaces/ethernet/node.tag/firewall/local/name/node.def
index 9c25548..5bd9cd6 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/local/name/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/local/name/node.def
@@ -1,18 +1,18 @@
type: txt
-help: "Local filter name"
+help: Local filter name
-create: "sh -c \"echo create eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+create:expression: "sh -c \"echo create eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../@) $VAR(..) $VAR(@)\" "
-update: "sh -c \"echo update eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+update:expression: "sh -c \"echo update eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../@) $VAR(..) $VAR(@)\" "
-delete: "sh -c \"echo delete eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+delete:expression: "sh -c \"echo delete eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces delete $(../../../@) $(..) $(@)\" "
+--update-interfaces delete $VAR(../../../@) $VAR(..) $VAR(@)\" "
diff --git a/templates/interfaces/ethernet/node.tag/firewall/local/node.def b/templates/interfaces/ethernet/node.tag/firewall/local/node.def
index 5785f8d..eb0ccdf 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/local/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/local/node.def
@@ -1 +1 @@
-help: "Filter packets destined for this router"
+help: Filter packets destined for this router
diff --git a/templates/interfaces/ethernet/node.tag/firewall/node.def b/templates/interfaces/ethernet/node.tag/firewall/node.def
index 95ad2ba..7778775 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/node.def
@@ -1 +1 @@
-help: "Configure firewall options"
+help: Configure firewall options
diff --git a/templates/interfaces/ethernet/node.tag/firewall/out/name/node.def b/templates/interfaces/ethernet/node.tag/firewall/out/name/node.def
index 23d0525..0086f38 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/out/name/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/out/name/node.def
@@ -1,18 +1,18 @@
type: txt
-help: "Outbound interface filter name"
+help: Outbound interface filter name
-create: "sh -c \"echo create eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+create:expression: "sh -c \"echo create eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../@) $VAR(..) $VAR(@)\" "
-update: "sh -c \"echo update eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+update:expression: "sh -c \"echo update eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../@) $VAR(..) $VAR(@)\" "
-delete: "sh -c \"echo delete eth=[$(../../../@)] dir=[$(..)] name=[$(@)] \
+delete:expression: "sh -c \"echo delete eth=[$VAR(../../../@)] dir=[$VAR(..)] name=[$VAR(@)] \
>> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces delete $(../../../@) $(..) $(@)\" "
+--update-interfaces delete $VAR(../../../@) $VAR(..) $VAR(@)\" "
diff --git a/templates/interfaces/ethernet/node.tag/firewall/out/node.def b/templates/interfaces/ethernet/node.tag/firewall/out/node.def
index 66f4e6f..4cf0682 100644
--- a/templates/interfaces/ethernet/node.tag/firewall/out/node.def
+++ b/templates/interfaces/ethernet/node.tag/firewall/out/node.def
@@ -1 +1 @@
-help: "Filter forwarded packets on outbound interface"
+help: Filter forwarded packets on outbound interface
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/name/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/name/node.def
index 29e4fba..ade7e78 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/name/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/name/node.def
@@ -1,18 +1,18 @@
type: txt
-help: "Inbound interface filter name"
+help: Inbound interface filter name
-create: "sh -c \"echo create eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+create:expression: "sh -c \"echo create eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
-update: "sh -c \"echo update eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+update:expression: "sh -c \"echo update eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
-delete: "sh -c \"echo delete eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+delete:expression: "sh -c \"echo delete eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces delete $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces delete $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/node.def
index caa7172..7a9f156 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/in/node.def
@@ -1 +1 @@
-help: "Filter forwarded packets on inbound interface"
+help: Filter forwarded packets on inbound interface
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/name/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/name/node.def
index 8995e9e..4089ab1 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/name/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/name/node.def
@@ -1,17 +1,17 @@
type: txt
-help: "Local filter name"
+help: Local filter name
-create: "sh -c \"echo create eth=[$(../../../../@)] vif=[$(../../../@)] \ dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+create:expression: "sh -c \"echo create eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \ dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
-update: "sh -c \"echo update eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+update:expression: "sh -c \"echo update eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
-delete: "sh -c \"echo delete eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+delete:expression: "sh -c \"echo delete eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces delete $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces delete $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/node.def
index 5785f8d..eb0ccdf 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/local/node.def
@@ -1 +1 @@
-help: "Filter packets destined for this router"
+help: Filter packets destined for this router
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/node.def
index 95ad2ba..7778775 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/node.def
@@ -1 +1 @@
-help: "Configure firewall options"
+help: Configure firewall options
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/name/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/name/node.def
index 51f9b40..22642a2 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/name/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/name/node.def
@@ -1,17 +1,17 @@
type: txt
-help: "Outbound interface filter name"
+help: Outbound interface filter name
-create: "sh -c \"echo create eth=[$(../../../../@)] vif=[$(../../../@)] \ dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+create:expression: "sh -c \"echo create eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \ dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
-update: "sh -c \"echo update eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+update:expression: "sh -c \"echo update eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces update $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces update $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
-delete: "sh -c \"echo delete eth=[$(../../../../@)] vif=[$(../../../@)] \
-dir=[$(..)] name=[$(@)] >> /tmp/cli.log && \
+delete:expression: "sh -c \"echo delete eth=[$VAR(../../../../@)] vif=[$VAR(../../../@)] \
+dir=[$VAR(..)] name=[$VAR(@)] >> /tmp/cli.log && \
sudo /opt/vyatta/sbin/vyatta-firewall.pl \
---update-interfaces delete $(../../../../@).$(../../../@) $(..) $(@)\" "
+--update-interfaces delete $VAR(../../../../@).$VAR(../../../@) $VAR(..) $VAR(@)\" "
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/node.def
index 66f4e6f..4cf0682 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/firewall/out/node.def
@@ -1 +1 @@
-help: "Filter forwarded packets on outbound interface"
+help: Filter forwarded packets on outbound interface