-
Notifications
You must be signed in to change notification settings - Fork 0
/
adapter.yaml
46 lines (39 loc) · 1.56 KB
/
adapter.yaml
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
device_config:
# hostname of a target gNMI server
host: 127.0.0.1
# gNMI port
port: 50061
# gNMI server username for all gNMI requests
username: admin
# gNMI server password for all gNMI requests
password: admin
# insecure/certificate-based gNMI server mode for all requests
insecure: true
lib_config:
# whether to enable internal implementation logs
enable_extra_logs: false
# GetRequest Encoding parameter if not set by test-case
default_encoding: JSON_IETF
# GetRequest Path parameter if not set by test-case
default_path:
# ---- generic gNMI test cases settings
get_prefix_path: /interfaces-state/interface[name=state_if_2]/type
get_sanity_path: /ietf-interfaces:interfaces # XPath to data that device supports, for simple small-scale sanity GetRequest
gnmi_get_paths:
- /interfaces-state/interface[name=state_if_2]/name
- /interfaces-state/interface[name=state_if_2]/type
- /interfaces/interface
- /interfaces-state/interface[name=state_if_1]
- /interfaces-state/interface[name=state_if_3]
- /interfaces-state/interface[name=state_if_7]
- /interfaces-state/interface[name=state_if_10]
oc_interfaces_prefix: "openconfig-interfaces:"
oc_interface: GigabitEthernet1/1/1
oc-interface-paths:
/openconfig-interfaces:interfaces/interface/config:
- name
- type
subscription-timeout: 2 # how long to wait for incoming subscription responses
subscription-stream-path: /ietf-interfaces:interfaces/interface # path for stream testing
sample-period: 5
subscription-update-time: 5 # for how long we should monitor on-change updates