From 765cb29e4c12c48fca6326c434b985e655bafc1a Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Thu, 12 Jan 2017 10:46:28 +0100 Subject: HONEYCOMB-325 - Null pointer while routing attr not defined Fixes multiple null pointers Change-Id: Iaa1df9a8b0a886d1835fe7cb87bcf7cf5130c6f5 Signed-off-by: Jan Srnicek --- .../ipv6/multiHopRouteWithClassifier.json | 31 ---------------------- .../ipv6/multiHopRouteWithoutClassifier.json | 30 --------------------- .../ipv6/multihop/multiHopRouteWithClassifier.json | 31 ++++++++++++++++++++++ .../multihop/multiHopRouteWithoutClassifier.json | 30 +++++++++++++++++++++ .../multihop/multiHopRouteWithoutRouteAttrs.json | 28 +++++++++++++++++++ .../ipv6/simpleHopRouteWithClassifier.json | 17 ------------ .../ipv6/simpleHopRouteWithoutClassifier.json | 16 ----------- .../simplehop/simpleHopRouteWithClassifier.json | 17 ++++++++++++ .../simplehop/simpleHopRouteWithoutClassifier.json | 16 +++++++++++ .../simplehop/simpleHopRouteWithoutRouteAttrs.json | 14 ++++++++++ .../resources/ipv6/specialHopRouteBlackhole.json | 13 --------- .../resources/ipv6/specialHopRouteProhibited.json | 13 --------- .../resources/ipv6/specialHopRouteReceive.json | 13 --------- .../resources/ipv6/specialHopRouteUnreachable.json | 13 --------- .../ipv6/specialhop/specialHopRouteBlackhole.json | 13 +++++++++ .../ipv6/specialhop/specialHopRouteProhibited.json | 13 +++++++++ .../ipv6/specialhop/specialHopRouteReceive.json | 13 +++++++++ .../specialhop/specialHopRouteUnreachable.json | 13 +++++++++ 18 files changed, 188 insertions(+), 146 deletions(-) delete mode 100644 routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithClassifier.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithoutClassifier.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithClassifier.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutClassifier.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutRouteAttrs.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithClassifier.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithoutClassifier.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithClassifier.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutClassifier.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutRouteAttrs.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/specialHopRouteBlackhole.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/specialHopRouteProhibited.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/specialHopRouteReceive.json delete mode 100644 routing/routing-impl/src/test/resources/ipv6/specialHopRouteUnreachable.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteBlackhole.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteProhibited.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteReceive.json create mode 100644 routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteUnreachable.json (limited to 'routing/routing-impl/src/test/resources/ipv6') diff --git a/routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithClassifier.json b/routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithClassifier.json deleted file mode 100644 index c8b1e208e..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithClassifier.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", - "vpp-ipv6-route": { - "classify-table": "classify-table-one" - }, - "next-hop-list": { - "next-hop": [ - { - "id": "1", - "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", - "outgoing-interface": "iface", - "weight": "2" - }, - { - "id": "2", - "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", - "outgoing-interface": "iface", - "weight": "2" - } - ] - } - } - ] - } - } -} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithoutClassifier.json b/routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithoutClassifier.json deleted file mode 100644 index 2e44ebcf5..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/multiHopRouteWithoutClassifier.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", - "vpp-ipv6-route": { - }, - "next-hop-list": { - "next-hop": [ - { - "id": "1", - "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", - "outgoing-interface": "iface", - "weight": "2" - }, - { - "id": "2", - "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", - "outgoing-interface": "iface", - "weight": "2" - } - ] - } - } - ] - } - } -} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithClassifier.json b/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithClassifier.json new file mode 100644 index 000000000..c8b1e208e --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithClassifier.json @@ -0,0 +1,31 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "vpp-ipv6-route": { + "classify-table": "classify-table-one" + }, + "next-hop-list": { + "next-hop": [ + { + "id": "1", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface", + "weight": "2" + }, + { + "id": "2", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface", + "weight": "2" + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutClassifier.json b/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutClassifier.json new file mode 100644 index 000000000..2e44ebcf5 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutClassifier.json @@ -0,0 +1,30 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "vpp-ipv6-route": { + }, + "next-hop-list": { + "next-hop": [ + { + "id": "1", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface", + "weight": "2" + }, + { + "id": "2", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface", + "weight": "2" + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutRouteAttrs.json b/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutRouteAttrs.json new file mode 100644 index 000000000..f85b1b716 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/multihop/multiHopRouteWithoutRouteAttrs.json @@ -0,0 +1,28 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "next-hop-list": { + "next-hop": [ + { + "id": "1", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface", + "weight": "2" + }, + { + "id": "2", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface", + "weight": "2" + } + ] + } + } + ] + } + } +} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithClassifier.json b/routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithClassifier.json deleted file mode 100644 index c011a8d01..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithClassifier.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", - "vpp-ipv6-route": { - "classify-table": "classify-table-one" - }, - "next-hop": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", - "outgoing-interface": "iface" - } - ] - } - } -} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithoutClassifier.json b/routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithoutClassifier.json deleted file mode 100644 index 1cb663ca7..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/simpleHopRouteWithoutClassifier.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", - "vpp-ipv6-route": { - }, - "next-hop": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", - "outgoing-interface": "iface" - } - ] - } - } -} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithClassifier.json b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithClassifier.json new file mode 100644 index 000000000..c011a8d01 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithClassifier.json @@ -0,0 +1,17 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "vpp-ipv6-route": { + "classify-table": "classify-table-one" + }, + "next-hop": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface" + } + ] + } + } +} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutClassifier.json b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutClassifier.json new file mode 100644 index 000000000..1cb663ca7 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutClassifier.json @@ -0,0 +1,16 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "vpp-ipv6-route": { + }, + "next-hop": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface" + } + ] + } + } +} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutRouteAttrs.json b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutRouteAttrs.json new file mode 100644 index 000000000..a735c193c --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/simplehop/simpleHopRouteWithoutRouteAttrs.json @@ -0,0 +1,14 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "next-hop": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "iface" + } + ] + } + } +} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteBlackhole.json b/routing/routing-impl/src/test/resources/ipv6/specialHopRouteBlackhole.json deleted file mode 100644 index 1cc319107..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteBlackhole.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", - "special-next-hop": "blackhole" - } - ] - } - } -} diff --git a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteProhibited.json b/routing/routing-impl/src/test/resources/ipv6/specialHopRouteProhibited.json deleted file mode 100644 index d69e817d7..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteProhibited.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", - "special-next-hop": "prohibit" - } - ] - } - } -} diff --git a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteReceive.json b/routing/routing-impl/src/test/resources/ipv6/specialHopRouteReceive.json deleted file mode 100644 index 50d447de0..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteReceive.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", - "special-next-hop": "receive" - } - ] - } - } -} diff --git a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteUnreachable.json b/routing/routing-impl/src/test/resources/ipv6/specialHopRouteUnreachable.json deleted file mode 100644 index c874549d1..000000000 --- a/routing/routing-impl/src/test/resources/ipv6/specialHopRouteUnreachable.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "static-routes": { - "ipv6": { - "route": [ - { - "id": 1, - "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", - "special-next-hop": "unreachable" - } - ] - } - } -} \ No newline at end of file diff --git a/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteBlackhole.json b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteBlackhole.json new file mode 100644 index 000000000..1cc319107 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteBlackhole.json @@ -0,0 +1,13 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", + "special-next-hop": "blackhole" + } + ] + } + } +} diff --git a/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteProhibited.json b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteProhibited.json new file mode 100644 index 000000000..d69e817d7 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteProhibited.json @@ -0,0 +1,13 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", + "special-next-hop": "prohibit" + } + ] + } + } +} diff --git a/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteReceive.json b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteReceive.json new file mode 100644 index 000000000..50d447de0 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteReceive.json @@ -0,0 +1,13 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", + "special-next-hop": "receive" + } + ] + } + } +} diff --git a/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteUnreachable.json b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteUnreachable.json new file mode 100644 index 000000000..c874549d1 --- /dev/null +++ b/routing/routing-impl/src/test/resources/ipv6/specialhop/specialHopRouteUnreachable.json @@ -0,0 +1,13 @@ +{ + "static-routes": { + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/24", + "special-next-hop": "unreachable" + } + ] + } + } +} \ No newline at end of file -- cgit 1.2.3-korg