diff options
Diffstat (limited to 'templates/protocols/ospf/access-list')
-rw-r--r-- | templates/protocols/ospf/access-list/node.def | 4 | ||||
-rw-r--r-- | templates/protocols/ospf/access-list/node.tag/export/node.def | 17 |
2 files changed, 21 insertions, 0 deletions
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 |