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