diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-23 11:20:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-23 11:20:15 +0100 |
commit | 58712cb809143d6d5eb62bef47bd5831fef1e847 (patch) | |
tree | 91275e77f45c23afda283a1a5aeb5f34e8c21a65 /templates/protocols/ospf/redistribute/kernel | |
parent | 1f7f2d9cc202f0c7abdde014868cd113a9834543 (diff) | |
parent | 73a6551d2e65c1157f7e86e1912b759946c6e40d (diff) | |
download | vyatta-cfg-quagga-58712cb809143d6d5eb62bef47bd5831fef1e847.tar.gz vyatta-cfg-quagga-58712cb809143d6d5eb62bef47bd5831fef1e847.zip |
Merge pull request #64 from c-po/current
T3236: migrate ospf to vyos-1x
Diffstat (limited to 'templates/protocols/ospf/redistribute/kernel')
4 files changed, 0 insertions, 33 deletions
diff --git a/templates/protocols/ospf/redistribute/kernel/metric-type/node.def b/templates/protocols/ospf/redistribute/kernel/metric-type/node.def deleted file mode 100644 index e49f528c..00000000 --- a/templates/protocols/ospf/redistribute/kernel/metric-type/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: OSPF metric type -default: 2 -syntax:expression: $VAR(@) in 1, 2 ; "metric-type must be either 1 or 2" -val_help: u32:1-2; Metric type (default 2) diff --git a/templates/protocols/ospf/redistribute/kernel/metric/node.def b/templates/protocols/ospf/redistribute/kernel/metric/node.def deleted file mode 100644 index 58fd80d7..00000000 --- a/templates/protocols/ospf/redistribute/kernel/metric/node.def +++ /dev/null @@ -1,4 +0,0 @@ -type: u32 -help: Metric for redistributed routes -syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 16777214; "metric must be between 0 and 16777214" -val_help: u32:0-16777214; Metric for redistributed routes diff --git a/templates/protocols/ospf/redistribute/kernel/node.def b/templates/protocols/ospf/redistribute/kernel/node.def deleted file mode 100644 index 0ad09cf5..00000000 --- a/templates/protocols/ospf/redistribute/kernel/node.def +++ /dev/null @@ -1,21 +0,0 @@ -help: Redistribute kernel routes -delete:expression: "touch /tmp/ospf-redist-kernel.$PPID" -end: vtysh -c "configure terminal" \ - -c "router ospf" \ - -c "no redistribute kernel"; - if [ -f "/tmp/ospf-redist-kernel.$PPID" ]; then - rm -f /tmp/ospf-redist-kernel.$PPID; - else - if [ -n "$VAR(./metric/@)" ]; then - COND="metric $VAR(./metric/@)"; - fi; - if [ -n "$VAR(./metric-type/@)" ]; then - COND="$COND metric-type $VAR(./metric-type/@)"; - fi; - if [ -n "$VAR(./route-map/@)" ]; then - COND="$COND route-map $VAR(./route-map/@)"; - fi; - vtysh -c "configure terminal" \ - -c "router ospf" \ - -c "redistribute kernel $COND"; - fi; diff --git a/templates/protocols/ospf/redistribute/kernel/route-map/node.def b/templates/protocols/ospf/redistribute/kernel/route-map/node.def deleted file mode 100644 index f2c6f7c2..00000000 --- a/templates/protocols/ospf/redistribute/kernel/route-map/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: txt -help: Route map reference -commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist" |