diff options
author | root <root@debianlenny.sici.thales.no> | 2009-02-09 13:28:52 +0100 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-02-11 10:43:53 -0800 |
commit | 79dd5282b0462b3b116248821a58cdfc0a597812 (patch) | |
tree | 714e83a5ea80879f7f89a2e95bba902c01df59ba /templates/protocols | |
parent | 2ba836d922e7393a3d3e3715b7fd94c4b7ef6622 (diff) | |
download | vyatta-cfg-quagga-79dd5282b0462b3b116248821a58cdfc0a597812.tar.gz vyatta-cfg-quagga-79dd5282b0462b3b116248821a58cdfc0a597812.zip |
Initial commit of config commands for ospfv3
Diffstat (limited to 'templates/protocols')
14 files changed, 108 insertions, 0 deletions
diff --git a/templates/protocols/ospfv3/area/node.def b/templates/protocols/ospfv3/area/node.def new file mode 100644 index 00000000..244756b2 --- /dev/null +++ b/templates/protocols/ospfv3/area/node.def @@ -0,0 +1,6 @@ +tag: +type: txt +help: Set OSPFv3 Area +syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-ospf-area $VAR(@)"; "Invalid OSFPv3 area \"$VAR(@)\" " +comp_help: possible completions: + <x.x.x.x> Set OSPFv3 area in dotted decimal notation diff --git a/templates/protocols/ospfv3/area/node.tag/export-list/node.def b/templates/protocols/ospfv3/area/node.tag/export-list/node.def new file mode 100644 index 00000000..ff984240 --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/export-list/node.def @@ -0,0 +1,8 @@ +type: txt +help: Set name of export-list +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"area $VAR(../@) export-list $VAR(@) \"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"no area $VAR(../@) export-list $VAR(@) \"; " diff --git a/templates/protocols/ospfv3/area/node.tag/filter-list/node.def b/templates/protocols/ospfv3/area/node.tag/filter-list/node.def new file mode 100644 index 00000000..358fa36c --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/filter-list/node.def @@ -0,0 +1,3 @@ +tag: +type: txt +help: Set filter-list
\ No newline at end of file diff --git a/templates/protocols/ospfv3/area/node.tag/filter-list/node.tag/node.def b/templates/protocols/ospfv3/area/node.tag/filter-list/node.tag/node.def new file mode 100644 index 00000000..eb63a9c2 --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/filter-list/node.tag/node.def @@ -0,0 +1,10 @@ +tag: +type: txt +help: Set direction of filter (in|out) +allowed: echo "in out" +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"area $VAR(../../@) filter-list $VAR(../@) $VAR(@) \"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"no area $VAR(../../@) filter-list $VAR(../@) $VAR(@) \"; " diff --git a/templates/protocols/ospfv3/area/node.tag/import-list/node.def b/templates/protocols/ospfv3/area/node.tag/import-list/node.def new file mode 100644 index 00000000..9409e9d1 --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/import-list/node.def @@ -0,0 +1,8 @@ +type: txt +help: Set name of import-list +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"area $VAR(../@) import-list $VAR(@) \"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"no area $VAR(../@) import-list $VAR(@) \"; " diff --git a/templates/protocols/ospfv3/area/node.tag/interface/node.def b/templates/protocols/ospfv3/area/node.tag/interface/node.def new file mode 100644 index 00000000..384a225f --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/interface/node.def @@ -0,0 +1,17 @@ +type: txt +help: Set OSPFv3 area interface +create:expression: "vyatta-vtysh --noerror -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"no interface $VAR(@) area $VAR(../@) \"; " +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"interface $VAR(@) area $VAR(../@) \"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"no interface $VAR(@) area $VAR(../@) \"; " + +allowed: for dev in /sys/class/net/*; + do if [[ -d $dev && -L $dev/device ]] + then echo -n ${dev##*/} " " + fi + done diff --git a/templates/protocols/ospfv3/area/node.tag/node.def b/templates/protocols/ospfv3/area/node.tag/node.def new file mode 100644 index 00000000..03cac4e1 --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/node.def @@ -0,0 +1 @@ +help: Set OSPFv3 area parameters
\ No newline at end of file diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.def new file mode 100644 index 00000000..4df392fc --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/range/node.def @@ -0,0 +1,20 @@ +tag: +type: ipv6net +help: Set to spcify IPv6 prefix (border routers only) +syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)" + +delete: touch /tmp/ospf6-range.$PPID + +end: if [ -f /tmp/ospf6-range.$PPID ]; then + vyatta-vtysh -c "configure terminal" \ + -c "router ospf6" \ + -c "no area $VAR(../@) range $VAR(@)"; + rm /tmp/ospf6-range.$PPID; + else + vyatta-vtysh --noerror -c "configure terminal" \ + -c "router ospf6" \ + -c "no area $VAR(../@) range $VAR(@)"; + vyatta-vtysh -c "configure terminal" \ + -c "router ospf6" \ + -c "area $VAR(../@) range $VAR(@)"; + fi; diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def new file mode 100644 index 00000000..5da43c1e --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def @@ -0,0 +1,7 @@ +help: Set to advertise this range +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6\" \ + -c \"area $VAR(../../@) range $VAR(../@) advertise\"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6\" \ + -c \"no area $VAR(../../@) range $VAR(../@) advertise\"; " diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def new file mode 100644 index 00000000..1b97f964 --- /dev/null +++ b/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def @@ -0,0 +1,7 @@ +help: Set to not advertise this range +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6\" \ + -c \"area $VAR(../../@) range $VAR(../@) not-advertise\"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6\" \ + -c \"no area $VAR(../../@) range $VAR(../@) not-advertise\"; " diff --git a/templates/protocols/ospfv3/node.def b/templates/protocols/ospfv3/node.def new file mode 100644 index 00000000..65963f46 --- /dev/null +++ b/templates/protocols/ospfv3/node.def @@ -0,0 +1,5 @@ +help: Configure IPv6 Open Shortest Path First protocol (OSPFv3) parameters +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6\" " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"no router ospf6\" " diff --git a/templates/protocols/ospfv3/parameters/node.def b/templates/protocols/ospfv3/parameters/node.def new file mode 100644 index 00000000..e92d1a08 --- /dev/null +++ b/templates/protocols/ospfv3/parameters/node.def @@ -0,0 +1 @@ +help: Set OSPFv3 specific parameters diff --git a/templates/protocols/ospfv3/parameters/router-id/node.def b/templates/protocols/ospfv3/parameters/router-id/node.def new file mode 100644 index 00000000..d38713eb --- /dev/null +++ b/templates/protocols/ospfv3/parameters/router-id/node.def @@ -0,0 +1,5 @@ +type: ipv4 +help: Set router identifier +update:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6\" \ + -c \"router-id $VAR(@)\" " diff --git a/templates/protocols/ospfv3/redistribute/node.def b/templates/protocols/ospfv3/redistribute/node.def new file mode 100644 index 00000000..4d7d1bcc --- /dev/null +++ b/templates/protocols/ospfv3/redistribute/node.def @@ -0,0 +1,10 @@ +multi: +type: txt +help: Set route type to redistribute +allowed: echo "static kernel connected ripng bgp" +create:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"redistribute $VAR(@) \"; " +delete:expression: "vyatta-vtysh -c \"configure terminal\" \ + -c \"router ospf6 \" \ + -c \"no redistribute $VAR(@) \"; " |