Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
1
plugins/inputs/gnmi/testcases/issue_11011/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_11011/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
oc-neigh-state,source=127.0.0.1,neighbor_address=192.0.2.1,name=default,oc-neigh-desc/description=EXAMPLE-PEER,/network-instances/network-instance/protocols/protocol/name=BGP,identifier=BGP session_state="ESTABLISHED" 1543236572000000000
|
116
plugins/inputs/gnmi/testcases/issue_11011/responses.json
Normal file
116
plugins/inputs/gnmi/testcases/issue_11011/responses.json
Normal file
|
@ -0,0 +1,116 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1543236571000000000",
|
||||
"prefix": {},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "network-instances"
|
||||
},
|
||||
{
|
||||
"name": "network-instance",
|
||||
"key": {
|
||||
"name": "default"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "protocols"
|
||||
},
|
||||
{
|
||||
"name": "protocol",
|
||||
"key": {
|
||||
"identifier": "BGP",
|
||||
"name": "BGP"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bgp"
|
||||
},
|
||||
{
|
||||
"name": "neighbors"
|
||||
},
|
||||
{
|
||||
"name": "neighbor",
|
||||
"key": {
|
||||
"neighbor_address": "192.0.2.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "description"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "EXAMPLE-PEER"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"syncResponse": true
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1543236572000000000",
|
||||
"prefix": {},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "network-instances"
|
||||
},
|
||||
{
|
||||
"name": "network-instance",
|
||||
"key": {
|
||||
"name": "default"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "protocols"
|
||||
},
|
||||
{
|
||||
"name": "protocol",
|
||||
"key": {
|
||||
"identifier": "BGP",
|
||||
"name": "BGP"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bgp"
|
||||
},
|
||||
{
|
||||
"name": "neighbors"
|
||||
},
|
||||
{
|
||||
"name": "neighbor",
|
||||
"key": {
|
||||
"neighbor_address": "192.0.2.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "session-state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "ESTABLISHED"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"syncResponse": true
|
||||
}
|
||||
]
|
14
plugins/inputs/gnmi/testcases/issue_11011/telegraf.conf
Normal file
14
plugins/inputs/gnmi/testcases/issue_11011/telegraf.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["127.0.0.1"]
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "oc-neigh-state"
|
||||
origin = "openconfig"
|
||||
path = "/network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/session-state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.tag_subscription]]
|
||||
name = "oc-neigh-desc"
|
||||
origin = "openconfig"
|
||||
path = "/network-instances/network-instance/protocols/protocol/bgp/neighbors/neighbor/state/description"
|
||||
subscription_mode = "on_change"
|
||||
elements = ["network-instance", "protocol", "neighbor"]
|
Loading…
Add table
Add a link
Reference in a new issue