CSIT-117: CSIT Vagrant+Virtualbox dev environment inoperative on Ubuntu
[csit.git] / resources / topology_schemas / 3_node_topology.sch.yaml
1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 # This file defines required nodes for 3-node topology.
15
16 name: 3_node_topology
17
18 #        +------+                 +-----+ port1
19 #        |      | port1     port3 |     +------+
20 #        | DUT1 +-----------------+ TG  |      |
21 #        |      +-----------------+     +------+
22 #        |      | port2     port4 |     | port2
23 #        +-+-+--+                 +-+-+-+
24 #    port3 | | port4          port5 | | port6
25 #          | |                      | |
26 #          | |                      | |
27 #    port3 | | port4                | |
28 #        +-+-+--+                   | |
29 #        |      | port1             | |
30 #        | DUT2 +-------------------+ |
31 #        |      +---------------------+
32 #        |      | port2
33 #        +------+
34
35 type: map
36 mapping:
37   metadata:
38     include: topology_metadata_map
39
40   nodes:
41     type: map
42     required: yes
43     mapping:
44       TG:
45         include: type_tg
46       DUT1:
47         include: type_dut
48       DUT2:
49         include: type_dut