f1599ddaddde747d54181a04779f3f7e7a64be14
[integration/test.git] / csit / variables / gbp / 6node / demo-symmetric-chain / master / tenants.json
1 {
2     "tenant": [
3         {
4             "id": "tenant-red",
5             "l2-flood-domain": [
6                 {
7                     "id": "flood-domain-1",
8                     "parent": "bridge-domain1"
9                 },
10                 {
11                     "id": "flood-domain-2",
12                     "parent": "bridge-domain1"
13                 }
14             ],
15             "name": "DockerTenant",
16             "l3-context": [
17                 {
18                     "id": "l3-context-vrf-red"
19                 }
20             ],
21             "l2-bridge-domain": [
22                 {
23                     "id": "bridge-domain1",
24                     "parent": "l3-context-vrf-red"
25                 }
26             ],
27             "subnet": [
28                 {
29                     "id": "subnet-10.0.36.0/24",
30                     "virtual-router-ip": "10.0.36.1",
31                     "parent": "flood-domain-2",
32                     "ip-prefix": "10.0.36.1/24"
33                 },
34                 {
35                     "id": "subnet-10.0.35.0/24",
36                     "virtual-router-ip": "10.0.35.1",
37                     "parent": "flood-domain-1",
38                     "ip-prefix": "10.0.35.1/24"
39                 }
40             ],
41             "endpoint-group": [
42                 {
43                     "id": "webservers",
44                     "name": "webservers",
45                     "provider-named-selector": [
46                         {
47                             "name": "webservers-clients-icmp-http-contract",
48                             "contract": [
49                                 "icmp-http-contract"
50                             ]
51                         }
52                     ]
53                 },
54                 {
55                     "id": "clients",
56                     "name": "clients",
57                     "consumer-named-selector": [
58                         {
59                             "name": "webservers-clients-icmp-http-contract",
60                             "contract": [
61                                 "icmp-http-contract"
62                             ]
63                         }
64                     ]
65                 }
66             ],
67             "subject-feature-instances": {
68                 "classifier-instance": [
69                     {
70                         "name": "icmp",
71                         "classifier-definition-id": "Classifier-IP-Protocol",
72                         "parameter-value": [
73                             {
74                                 "name": "proto",
75                                 "int-value": 1
76                             }
77                         ]
78                     },
79                     {
80                         "name": "http-dest",
81                         "classifier-definition-id": "Classifier-L4",
82                         "parameter-value": [
83                             {
84                                 "int-value": "6",
85                                 "name": "proto"
86                             },
87                             {
88                                 "int-value": "80",
89                                 "name": "destport"
90                             }
91                         ]
92                     },
93                     {
94                         "name": "http-src",
95                         "classifier-definition-id": "Classifier-L4",
96                         "parameter-value": [
97                             {
98                                 "int-value": "6",
99                                 "name": "proto"
100                             },
101                             {
102                                 "int-value": "80",
103                                 "name": "sourceport"
104                             }
105                         ]
106                     }
107                 ],
108                 "action-instance": [
109                     {
110                         "name": "chain1",
111                         "action-definition-id": "Action-Chain",
112                         "parameter-value": [
113                             {
114                                 "name": "sfc-chain-name",
115                                 "string-value": "SFCGBP"
116                             }
117                         ]
118                     },
119                     {
120                         "name": "allow1",
121                         "action-definition-id": "Action-Allow"
122                     }
123                 ]
124             },
125             "contract": [
126                 {
127                     "id": "icmp-http-contract",
128                     "subject": [
129                         {
130                             "name": "icmp-subject",
131                             "rule": [
132                                 {
133                                     "name": "allow-icmp-rule",
134                                     "order": 0,
135                                     "classifier-ref": [
136                                         {
137                                             "name": "icmp",
138                                             "instance-name": "icmp"
139                                         }
140                                     ],
141                                     "action-ref": [
142                                         {
143                                             "name": "allow1",
144                                             "order": 0
145                                         }
146                                     ]
147                                 }
148                             ]
149                         },
150                         {
151                             "name": "http-subject",
152                             "rule": [
153                                 {
154                                     "name": "http-chain-rule-in",
155                                     "classifier-ref": [
156                                         {
157                                             "name": "http-dest",
158                                             "instance-name": "http-dest",
159                                             "direction": "in"
160                                         }
161                                     ],
162                                     "action-ref": [
163                                         {
164                                             "name": "chain1",
165                                             "order": 0
166                                         }
167                                     ]
168                                 },
169                                 {
170                                     "name": "http-chain-rule-out",
171                                     "classifier-ref": [
172                                         {
173                                             "name": "http-src",
174                                             "instance-name": "http-src",
175                                             "direction": "out"
176                                         }
177                                     ],
178                                     "action-ref": [
179                                         {
180                                             "name": "chain1",
181                                             "order": 0
182                                         }
183                                     ]
184                                 }
185                             ]
186                         }
187                     ],
188                     "clause": [
189                         {
190                             "name": "icmp-http-clause",
191                             "subject-refs": [
192                                 "icmp-subject",
193                                 "http-subject"
194                             ]
195                         }
196                     ]
197                 }
198             ]
199         }
200     ]
201 }