-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtestsuite.yml
50 lines (50 loc) · 1.66 KB
/
testsuite.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
iterations: 10 # No of Iterations of the blocks section
clients: 7 # No of concurrent clients
rampup: 0 # No of seconds over which to rampup the client connections
configs:
- hostname: 10.0.0.1 # ip address or dns hostname
port: 830 # netconf port
username: uname
password: pass
reuseconnection: false # whether a connection to a device should be reused or not
- hostname: 10.0.0.2
port: 830
username: uname
password: pass
reuseconnection: true
blocks:
- type: init # init block type, actions only executed once per testsuite, can be used to configure the sut
actions:
- netconf:
hostname: 10.0.0.1
operation: edit-config
target: running
config: <top xmlns="http://example.com/schema/1.2/config"><protocols><ospf><area><name>0.0.0.0</name><interfaces><interface
xc:operation="delete"><name>192.0.2.4</name></interface></interfaces></area></ospf></protocols></top>
- type: concurrent # concurrent block type, individual actions are executed concurrently
actions:
- netconf:
hostname: 10.0.0.1
operation: get
- netconf:
hostname: 10.0.0.2
operation: get
filter:
type: subtree
select: <users/>
expected: "(<[^>]+>)"
- type: sequential # sequential block type, individual actions are executed sequentially
actions:
- netconf:
hostname: 10.0.0.1
operation: get-config
- sleep:
duration: 5 # milliseconds
- netconf:
hostname: 10.0.0.1
operation: get-config
Source: running
- netconf:
hostname: 10.0.0.1
message: rpc
method: <get/>