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