From 0a214202b81b24e657186cd06d4818d74cb7c3cc Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sat, 25 Aug 2018 13:19:45 +0200 Subject: T795: fix blackhole routes for FRR that only accepts Null0, not null0 --- templates/protocols/static/route/node.tag/blackhole/node.def | 4 ++-- templates/protocols/static/route6/node.tag/blackhole/node.def | 4 ++-- .../protocols/static/table/node.tag/route/node.tag/blackhole/node.def | 4 ++-- .../static/table/node.tag/route6/node.tag/blackhole/node.def | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/protocols') diff --git a/templates/protocols/static/route/node.tag/blackhole/node.def b/templates/protocols/static/route/node.tag/blackhole/node.def index 95c96046..a7208dfa 100644 --- a/templates/protocols/static/route/node.tag/blackhole/node.def +++ b/templates/protocols/static/route/node.tag/blackhole/node.def @@ -6,11 +6,11 @@ end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then fi vtysh -c "configure terminal" \ - -c "no ip route $VAR(../@) null0"; + -c "no ip route $VAR(../@) Null0"; else if [ -n "$VAR(./distance/@)" ]; then DIST="$VAR(./distance/@)"; fi; vtysh -c "configure terminal" \ - -c "ip route $VAR(../@) null0 $DIST"; + -c "ip route $VAR(../@) Null0 $DIST"; fi; diff --git a/templates/protocols/static/route6/node.tag/blackhole/node.def b/templates/protocols/static/route6/node.tag/blackhole/node.def index 4344aa5a..48fca8f8 100644 --- a/templates/protocols/static/route6/node.tag/blackhole/node.def +++ b/templates/protocols/static/route6/node.tag/blackhole/node.def @@ -6,11 +6,11 @@ end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then fi vtysh -c "configure terminal" \ - -c "no ipv6 route $VAR(../@) null0"; + -c "no ipv6 route $VAR(../@) Null0"; else if [ -n "$VAR(./distance/@)" ]; then DIST="$VAR(./distance/@)"; fi; vtysh -c "configure terminal" \ - -c "ipv6 route $VAR(../@) null0 $DIST"; + -c "ipv6 route $VAR(../@) Null0 $DIST"; fi; diff --git a/templates/protocols/static/table/node.tag/route/node.tag/blackhole/node.def b/templates/protocols/static/table/node.tag/route/node.tag/blackhole/node.def index 06dbe5ae..727909e8 100644 --- a/templates/protocols/static/table/node.tag/route/node.tag/blackhole/node.def +++ b/templates/protocols/static/table/node.tag/route/node.tag/blackhole/node.def @@ -11,12 +11,12 @@ end: fi vtysh -c "configure terminal" \ - -c "no ip route $VAR(../@) null0 $table"; + -c "no ip route $VAR(../@) Null0 $table"; else if [ -n "$VAR(./distance/@)" ]; then dist="$VAR(./distance/@)"; fi; vtysh -c "configure terminal" \ - -c "ip route $VAR(../@) null0 $table $dist"; + -c "ip route $VAR(../@) Null0 $table $dist"; fi; diff --git a/templates/protocols/static/table/node.tag/route6/node.tag/blackhole/node.def b/templates/protocols/static/table/node.tag/route6/node.tag/blackhole/node.def index a4d3fe8a..2ecd16fc 100644 --- a/templates/protocols/static/table/node.tag/route6/node.tag/blackhole/node.def +++ b/templates/protocols/static/table/node.tag/route6/node.tag/blackhole/node.def @@ -11,11 +11,11 @@ end: fi vtysh -c "configure terminal" \ - -c "no ipv6 route $VAR(../@) null0 $table"; + -c "no ipv6 route $VAR(../@) Null0 $table"; else if [ -n "$VAR(./distance/@)" ]; then dist="$VAR(./distance/@)"; fi; vtysh -c "configure terminal" \ - -c "ipv6 route $VAR(../@) null0 $table $dist"; + -c "ipv6 route $VAR(../@) Null0 $table $dist"; fi; -- cgit v1.2.3