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