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_11778/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_11778/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
ifcounters,path=openconfig-interfaces:/interfaces/interface/state,name=eth42,descr/description=eth42,source=127.0.0.1 counters=5678i 1673608605875353770
|
49
plugins/inputs/gnmi/testcases/issue_11778/responses.json
Normal file
49
plugins/inputs/gnmi/testcases/issue_11778/responses.json
Normal file
|
@ -0,0 +1,49 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1673608605875353770",
|
||||
"prefix": {
|
||||
"origin": "openconfig-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"eth42"}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
],
|
||||
"target": "subscription"
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "counters"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"intVal": "5678"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "description"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "eth42"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
15
plugins/inputs/gnmi/testcases/issue_11778/telegraf.conf
Normal file
15
plugins/inputs/gnmi/testcases/issue_11778/telegraf.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "ifcounters"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/state/counters"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.tag_subscription]]
|
||||
name = "descr"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/state/description"
|
||||
subscription_mode = "on_change"
|
Loading…
Add table
Add a link
Reference in a new issue