diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-12-05 16:29:46 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-12-05 16:29:46 -0800 |
commit | c1f4cfadd9b879e6ccdb938e68c655cd0b3bd005 (patch) | |
tree | cda37d710478afad4876c38b856efd0d8cfdc76b /templates | |
parent | 9c36df0ec6587aad840c475de683f95f42017a05 (diff) | |
download | vyatta-cfg-qos-c1f4cfadd9b879e6ccdb938e68c655cd0b3bd005.tar.gz vyatta-cfg-qos-c1f4cfadd9b879e6ccdb938e68c655cd0b3bd005.zip |
add priorities to vrrp traffic-policy so that it is executed after keepalived has started
Diffstat (limited to 'templates')
2 files changed, 34 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/mirror/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/mirror/node.def new file mode 100644 index 0000000..0b2ca8c --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/mirror/node.def @@ -0,0 +1,17 @@ +priority: 820 +type: txt +help: Incoming packet mirroring destination +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=ethernet + +val_help: Interface for packet mirroring + +commit:expression: $VAR(../redirect) == ""; \ + "interface $VAR(../../../../@)v$VAR(../../@) : can not do both redirect and mirror" + +commit:expression: $VAR(../traffic-policy/in) == ""; \ + "interface $VAR(../../../../@)v$VAR(../../@) : can not use ingress policy and mirror" + +commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all" + +update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $VAR(../../../../@)v$VAR(../../@) +delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $VAR(../../../../@)v$VAR(../../@) diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/redirect/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/redirect/node.def new file mode 100644 index 0000000..fcaaf15 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.tag/interface/redirect/node.def @@ -0,0 +1,17 @@ +priority: 820 # after vrrp +type: txt +help: Incoming packet redirection destination +allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=input + +val_help: Interface for packet redirection + +commit:expression: $VAR(../mirror) == "";\ + "interface $VAR(../../../../@)v$VAR(../../@) : can not do both redirect and mirror" + +commit:expression: $VAR(../traffic-policy/in) == ""; \ + "interface $VAR(../../../../@)v$VAR(../../@) : can not use ingress policy and redirect" + +commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(@) --check=all" + +update: /opt/vyatta/sbin/vyatta-qos.pl --update-action $VAR(../../../../@)v$VAR(../../@) +delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-action $VAR(../../../../@)v$VAR(../../@) |