diff options
author | Stig Thormodsrud <stig@uffda.(none)> | 2007-11-04 11:17:22 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@uffda.(none)> | 2007-11-04 11:17:22 -0800 |
commit | da563fa3127254122f6c4c6e86b852fdb3ca5180 (patch) | |
tree | 39e1c64a9e44c9f0d00d106c8db26875313142bf /templates/interfaces | |
parent | 604a1aaeee3cd3386febf5099936359b3647d56d (diff) | |
download | vyatta-cfg-system-da563fa3127254122f6c4c6e86b852fdb3ca5180.tar.gz vyatta-cfg-system-da563fa3127254122f6c4c6e86b852fdb3ca5180.zip |
Add vrrp to eureka.
Diffstat (limited to 'templates/interfaces')
9 files changed, 29 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/vrrp/advertise-interval/node.def b/templates/interfaces/ethernet/node.tag/vrrp/advertise-interval/node.def new file mode 100644 index 00000000..edfbc3a4 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/advertise-interval/node.def @@ -0,0 +1,4 @@ +type: u32 +default: 1 +help: "Configure advertise interval" +syntax: $(@) > 0 && $(@) <=255; "Advertise interval must be between 1-255" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/authentication/node.def b/templates/interfaces/ethernet/node.tag/vrrp/authentication/node.def new file mode 100644 index 00000000..e3120d51 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/authentication/node.def @@ -0,0 +1,3 @@ +help: "Configure authentication" +commit: $(./type/@) != ""; "You must set a authentication type" +commit: $(./password/@) != ""; "You must set a authentication password" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/authentication/password/node.def b/templates/interfaces/ethernet/node.tag/vrrp/authentication/password/node.def new file mode 100644 index 00000000..e79fc313 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/authentication/password/node.def @@ -0,0 +1,2 @@ +type: txt +help: "password text" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/authentication/type/node.def b/templates/interfaces/ethernet/node.tag/vrrp/authentication/type/node.def new file mode 100644 index 00000000..72e53f4b --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/authentication/type/node.def @@ -0,0 +1,3 @@ +type: txt +help: "Authentication type PASS|AH" +syntax: $(@) in "PASS", "pass", "AH", "ah"; "authentication must be PASS or AH" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/node.def b/templates/interfaces/ethernet/node.tag/vrrp/node.def new file mode 100644 index 00000000..38622243 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/node.def @@ -0,0 +1,4 @@ +help: "Configure VRRP" +commit: $(virtual-address/@) != ""; "must define the virtual-address" +end: "sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action update --intf $(../@) " + diff --git a/templates/interfaces/ethernet/node.tag/vrrp/preempt/node.def b/templates/interfaces/ethernet/node.tag/vrrp/preempt/node.def new file mode 100644 index 00000000..a9869373 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/preempt/node.def @@ -0,0 +1,4 @@ +type: txt +help: "Preempt (true or false)" +default: "true" +syntax: $(@) in "true", "false"; "preempt must be true or false" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/priority/node.def b/templates/interfaces/ethernet/node.tag/vrrp/priority/node.def new file mode 100644 index 00000000..3f7aacbf --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/priority/node.def @@ -0,0 +1,3 @@ +type: u32 +syntax: $(@) >= 0 &&$(@) <= 255; "priority must be between 1-255" +help: "Priority" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/virtual-address/node.def b/templates/interfaces/ethernet/node.tag/vrrp/virtual-address/node.def new file mode 100644 index 00000000..badf657e --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/virtual-address/node.def @@ -0,0 +1,2 @@ +type: ipv4 +help: "Configure virtual address" diff --git a/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def new file mode 100644 index 00000000..fe9690d8 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/vrrp/vrrp-group/node.def @@ -0,0 +1,4 @@ +type: u32 +syntax: $(@) >= 0 && $(@) <= 255; "VRRP group must be between 1-255" +help: "Configure VRRP group number" +delete: "sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action delete --intf $(../../@) --group $(@) " |