flowspec tests
[integration/test.git] / csit / variables / bgpflowspec / bgp-flowspec-redirect.json
1 {
2     "bgp-flowspec:flowspec-routes": {
3         "flowspec-route": [
4             {
5                 "route-key": "all packets to 192.168.0.2/32 AND from 10.0.0.2/32",
6                 "attributes": {
7                     "extended-communities": [
8                         {
9                             "transitive": true,
10                             "redirect-ip-nh-extended-community": {
11                                 "next-hop-address": "0.0.0.0",
12                                 "copy": false
13                             }
14                         }
15                     ],
16                     "ipv4-next-hop": {
17                         "global": "1.2.3.4"
18                     },
19                     "origin": {
20                         "value": "igp"
21                     },
22                     "as-path": {},
23                     "local-pref": {
24                         "pref": 100
25                     }
26                 },
27                 "flowspec": [
28                     {
29                         "destination-prefix": "192.168.0.2/32"
30                     },
31                     {
32                         "source-prefix": "10.0.0.2/32"
33                     }
34                 ]
35             },
36             {
37                 "route-key": "all packets to 192.168.0.1/32 AND from 10.0.0.1/32",
38                 "attributes": {
39                     "extended-communities": [
40                         {
41                             "transitive": true,
42                             "redirect-extended-community": {
43                                 "global-administrator": 65500,
44                                 "local-administrator": "AAAwOQ=="
45                             }
46                         }
47                     ],
48                     "origin": {
49                         "value": "igp"
50                     },
51                     "as-path": {},
52                     "local-pref": {
53                         "pref": 100
54                     }
55                 },
56                 "flowspec": [
57                     {
58                         "destination-prefix": "192.168.0.1/32"
59                     },
60                     {
61                         "source-prefix": "10.0.0.1/32"
62                     }
63                 ]
64             },
65             {
66                 "route-key": "all packets to 192.168.0.4/32 AND from 10.0.0.4/32",
67                 "attributes": {
68                     "extended-communities": [
69                         {
70                             "transitive": true,
71                             "redirect-ip-nh-extended-community": {
72                                 "next-hop-address": "0.0.0.0",
73                                 "copy": false
74                             }
75                         }
76                     ],
77                     "ipv4-next-hop": {
78                         "global": "127.0.0.1"
79                     },
80                     "origin": {
81                         "value": "igp"
82                     },
83                     "as-path": {},
84                     "local-pref": {
85                         "pref": 100
86                     }
87                 },
88                 "flowspec": [
89                     {
90                         "destination-prefix": "192.168.0.4/32"
91                     },
92                     {
93                         "source-prefix": "10.0.0.4/32"
94                     }
95                 ]
96             }
97         ]
98     }
99 }