From 700821ae3472ee3f8b038e6edf944dd3de4f44fc Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Fri, 7 Mar 2008 14:44:57 -0800 Subject: bug 2783: set protocols ospf distribute-list... --- templates/protocols/ospf/access-list/node.def | 4 ++++ .../protocols/ospf/access-list/node.tag/export/node.def | 17 +++++++++++++++++ templates/protocols/ospf/distribute-list/node.def | 4 ---- .../ospf/distribute-list/node.tag/out/node.def | 17 ----------------- 4 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 templates/protocols/ospf/access-list/node.def create mode 100644 templates/protocols/ospf/access-list/node.tag/export/node.def delete mode 100644 templates/protocols/ospf/distribute-list/node.def delete mode 100644 templates/protocols/ospf/distribute-list/node.tag/out/node.def diff --git a/templates/protocols/ospf/access-list/node.def b/templates/protocols/ospf/access-list/node.def new file mode 100644 index 00000000..9f4a8f06 --- /dev/null +++ b/templates/protocols/ospf/access-list/node.def @@ -0,0 +1,4 @@ +tag: +type: txt +commit:expression: $VAR(./out/) != ""; "must add protocol to filter" +help: access-list to filter networks in routing updates diff --git a/templates/protocols/ospf/access-list/node.tag/export/node.def b/templates/protocols/ospf/access-list/node.tag/export/node.def new file mode 100644 index 00000000..d70f6ded --- /dev/null +++ b/templates/protocols/ospf/access-list/node.tag/export/node.def @@ -0,0 +1,17 @@ +multi: +type: u32 +help: Filter outgoing routing updates +syntax:expression: $VAR(@) in "bgp", "connected", "isis", "kernel", "rip", "static"; "Must be (bgp, connected, isis, kernel, rip, or static)" +create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \ + -c \"router ospf\" \ + -c \"distribute-list $VAR(../@) out $VAR(@) \"; " +delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \ + -c \"router ospf\" \ + -c \"no distribute-list $VAR(../@) out $VAR(@) \"; " +comp_help: possible completions: + bgp Filter bgp routes + connected Filter connected routes + isis Filter isis routes + kernel Filter kernel routes + rip Filter rip routes + static Filter static routes diff --git a/templates/protocols/ospf/distribute-list/node.def b/templates/protocols/ospf/distribute-list/node.def deleted file mode 100644 index 9f4a8f06..00000000 --- a/templates/protocols/ospf/distribute-list/node.def +++ /dev/null @@ -1,4 +0,0 @@ -tag: -type: txt -commit:expression: $VAR(./out/) != ""; "must add protocol to filter" -help: access-list to filter networks in routing updates diff --git a/templates/protocols/ospf/distribute-list/node.tag/out/node.def b/templates/protocols/ospf/distribute-list/node.tag/out/node.def deleted file mode 100644 index 98e6e169..00000000 --- a/templates/protocols/ospf/distribute-list/node.tag/out/node.def +++ /dev/null @@ -1,17 +0,0 @@ -multi: -type: txt -help: Filter outgoing routing updates -syntax:expression: $VAR(@) in "bgp", "connected", "isis", "kernel", "rip", "static"; "Must be (bgp, connected, isis, kernel, rip, or static)" -create:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \ - -c \"router ospf\" \ - -c \"distribute-list $VAR(../@) out $VAR(@) \"; " -delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \ - -c \"router ospf\" \ - -c \"no distribute-list $VAR(../@) out $VAR(@) \"; " -comp_help: possible completions: - bgp Filter bgp routes - connected Filter connected routes - isis Filter isis routes - kernel Filter kernel routes - rip Filter rip routes - static Filter static routes -- cgit v1.2.3