You Wang | 84f981d | 2018-01-12 16:11:50 -0800 | [diff] [blame] | 1 | <TOPOLOGY> |
| 2 | <COMPONENT> |
| 3 | <!-- |
| 4 | This is a list of all components and their handles in the test setup. |
| 5 | Even with some handles not used in test cases, we want to define |
| 6 | all onos cells here, for cases to set up onos cluster. |
| 7 | --> |
| 8 | <ONOScell> |
| 9 | <host>localhost</host> # ONOS "bench" machine |
| 10 | <user>sdn</user> |
| 11 | <password>rocks</password> |
| 12 | <type>OnosClusterDriver</type> |
| 13 | <connect_order>1</connect_order> |
| 14 | <COMPONENTS> |
| 15 | <cluster_name></cluster_name> # Used as a prefix for cluster components. Defaults to 'ONOS' |
| 16 | <diff_clihost></diff_clihost> # if it has different host other than localhost for CLI. True or empty. OC# will be used if True. |
| 17 | <karaf_username></karaf_username> |
| 18 | <karaf_password></karaf_password> |
| 19 | <web_user></web_user> |
| 20 | <web_pass></web_pass> |
| 21 | <rest_port></rest_port> |
| 22 | <prompt></prompt> # TODO: we technically need a few of these, one per component |
| 23 | <onos_home></onos_home> # defines where onos home is |
| 24 | <nodes> 3 </nodes> # number of nodes in the cluster |
| 25 | </COMPONENTS> |
| 26 | </ONOScell> |
| 27 | |
| 28 | <MininetSwitch1> |
| 29 | <host>OCN</host> |
| 30 | <user>sdn</user> |
| 31 | <password>rocks</password> |
| 32 | <type>MininetSwitchDriver</type> |
| 33 | <connect_order>2</connect_order> |
| 34 | <COMPONENTS> |
| 35 | <shortName>s1</shortName> |
| 36 | <port1>1</port1> |
| 37 | <link1>MininetHost1</link1> |
| 38 | <port2>2</port2> |
| 39 | <link2>MininetHost2</link2> |
| 40 | </COMPONENTS> |
| 41 | </MininetSwitch1> |
| 42 | |
| 43 | <MininetHost1> |
| 44 | <host>OCN</host> |
| 45 | <user>sdn</user> |
| 46 | <password>rocks</password> |
| 47 | <type>MininetHostDriver</type> |
| 48 | <connect_order>3</connect_order> |
| 49 | <COMPONENTS> |
| 50 | <ip>10.0.0.1</ip> |
| 51 | <shortName>h1</shortName> |
| 52 | <port1>0</port1> |
| 53 | <link1>MininetSwitch1</link1> |
| 54 | </COMPONENTS> |
| 55 | </MininetHost1> |
| 56 | |
| 57 | <MininetHost2> |
| 58 | <host>OCN</host> |
| 59 | <user>sdn</user> |
| 60 | <password>rocks</password> |
| 61 | <type>MininetHostDriver</type> |
| 62 | <connect_order>4</connect_order> |
| 63 | <COMPONENTS> |
| 64 | <ip>10.0.0.2</ip> |
| 65 | <shortName>h2</shortName> |
| 66 | <port1>0</port1> |
| 67 | <link1>MininetSwitch1</link1> |
| 68 | </COMPONENTS> |
| 69 | </MininetHost2> |
| 70 | |
| 71 | <NetworkBench> |
| 72 | <host>OCN</host> |
| 73 | <user>sdn</user> |
| 74 | <password>rocks</password> |
| 75 | <type>NetworkDriver</type> |
| 76 | <connect_order>5</connect_order> |
| 77 | <COMPONENTS> |
| 78 | </COMPONENTS> |
| 79 | </NetworkBench> |
| 80 | |
| 81 | </COMPONENT> |
| 82 | </TOPOLOGY> |