summaryrefslogtreecommitdiffstats
path: root/testcases/Controllers/ONOS/Teston/CI/onosfunctest.py
blob: 3286a15f8990ef983f68095183ffb8eca25513a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
Description: This test is to run onos Teston VTN scripts

List of test cases:
CASE1 - Northbound NBI test network/subnet/ports
CASE2 - Ovsdb test&Default configuration&Vm go online

lanqinglong@huawei.com
"""
from adapters.client import client


if __name__=="__main__":

    main = client()
    main.masterusername = "root"
    main.masterpassword = "root"
    main.agentusername = "root"
    main.agentpassword = "root"
    main.OCT = '189.42.8.99'
    main.OC1 = '189.42.8.101'
    main.OC2 = '189.42.8.102'
    main.OC3 = '189.42.8.103'
    main.OCN = '189.42.8.104'
    main.OCN2 = '189.42.8.105'
    main.localhost = main.OCT
    main.onosbasic()

    #scripts to run
    main.RunScript("FUNCvirNetNB")
    main.RunScript("FUNCovsdbtest")