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 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 templates/protocols/ospf/access-list/node.def create mode 100644 templates/protocols/ospf/access-list/node.tag/export/node.def (limited to 'templates/protocols/ospf/access-list') 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 -- cgit v1.2.3