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
|
@ -0,0 +1 @@
|
|||
interfaces,name=eth42,path=openconfig-interfaces:/interfaces/interface,source=127.0.0.1 /interfaces/interface/descr="eth42",/interfaces/interface/config/id=42425u,/interfaces/interface/state/in_pkts=5678u,/interfaces/interface/state/out_pkts=5125u 1673608605875353770
|
|
@ -0,0 +1,79 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1673608605875353770",
|
||||
"prefix": {
|
||||
"origin": "openconfig-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"eth42"}
|
||||
}
|
||||
],
|
||||
"target": "subscription"
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "descr"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "eth42"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "config"
|
||||
},
|
||||
{
|
||||
"name": "id"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "42425"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "in-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "5678"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "out-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "5125"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,23 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
canonical_field_names = true
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/descr"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/config/id"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
|
@ -0,0 +1 @@
|
|||
interfaces,name=eth42,path=openconfig-interfaces:/interfaces/interface,source=127.0.0.1 interfaces/interface/descr="eth42",interfaces/interface/config/id=42425u,interfaces/interface/state/in_pkts=5678u,interfaces/interface/state/out_pkts=5125u 1673608605875353770
|
|
@ -0,0 +1,79 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1673608605875353770",
|
||||
"prefix": {
|
||||
"origin": "openconfig-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"eth42"}
|
||||
}
|
||||
],
|
||||
"target": "subscription"
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "descr"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "eth42"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "config"
|
||||
},
|
||||
{
|
||||
"name": "id"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "42425"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "in-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "5678"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "out-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "5125"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,24 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
canonical_field_names = true
|
||||
trim_field_names = true
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/descr"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/config/id"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
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"]
|
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"
|
|
@ -0,0 +1 @@
|
|||
ifcounters,path=openconfig-interfaces:/interfaces/interface/state,name=eth42,descr/description=eth42,source=127.0.0.1 counters=5678i 1673608605875353770
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,16 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["rt-01:nnnnn", "rt-02:nnnnn"]
|
||||
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.subscription]]
|
||||
name = "descr"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/state/description"
|
||||
subscription_mode = "on_change"
|
||||
tag_only = true
|
7
plugins/inputs/gnmi/testcases/issue_12831/expected.out
Normal file
7
plugins/inputs/gnmi/testcases/issue_12831/expected.out
Normal file
|
@ -0,0 +1,7 @@
|
|||
optical_channel,component_name=CM-1,source=127.0.0.1 cpu/openconfig_platform_cpu:utilization/state/avg=13u,cpu/openconfig_platform_cpu:utilization/state/instant=16u,cpu/openconfig_platform_cpu:utilization/state/interval=3600000000000u,cpu/openconfig_platform_cpu:utilization/state/max=17u,cpu/openconfig_platform_cpu:utilization/state/min=8u,name="CM-1",state/memory/available=5041100000u,state/memory/utilized=3099808000u,state/temperature/avg=20.5,state/temperature/instant=20.399999618530273,state/temperature/interval=3600000000000u,state/temperature/max=20.700000762939453,state/temperature/min=20.399999618530273 1714598222912553000
|
||||
optical_channel,component_name=AP-1,source=127.0.0.1 name="AP-1",state/temperature/avg=34.099998474121094,state/temperature/instant=34.29999923706055,state/temperature/interval=3600000000000u,state/temperature/max=34.599998474121094,state/temperature/min=33.599998474121094 1714598222912553000
|
||||
optical_channel,component_name=LM-1,source=127.0.0.1 name="LM-1",state/temperature/avg=40.79999923706055,state/temperature/instant=40.599998474121094,state/temperature/interval=3600000000000u,state/temperature/max=41.400001525878906,state/temperature/min=40.400001525878906 1714598222912553000
|
||||
optical_channel,component_name=LM-1,source=127.0.0.1,subcomponent_name=PORT-1-1 subcomponents/subcomponent/config/name="PORT-1-1",subcomponents/subcomponent/name="PORT-1-1",subcomponents/subcomponent/state/name="PORT-1-1" 1714598222912553000
|
||||
optical_channel,component_name=LM-1,source=127.0.0.1,subcomponent_name=PORT-1-2 subcomponents/subcomponent/config/name="PORT-1-2",subcomponents/subcomponent/name="PORT-1-2",subcomponents/subcomponent/state/name="PORT-1-2" 1714598222912553000
|
||||
optical_channel,component_name=LM-1,source=127.0.0.1,subcomponent_name=PORT-1-4 subcomponents/subcomponent/config/name="PORT-1-4",subcomponents/subcomponent/name="PORT-1-4",subcomponents/subcomponent/state/name="PORT-1-4" 1714598222912553000
|
||||
optical_channel,component_name=LM-1,source=127.0.0.1,subcomponent_name=PORT-1-12 subcomponents/subcomponent/config/name="PORT-1-12",subcomponents/subcomponent/name="PORT-1-12",subcomponents/subcomponent/state/name="PORT-1-12" 1714598222912553000
|
1101
plugins/inputs/gnmi/testcases/issue_12831/responses.json
Normal file
1101
plugins/inputs/gnmi/testcases/issue_12831/responses.json
Normal file
File diff suppressed because it is too large
Load diff
10
plugins/inputs/gnmi/testcases/issue_12831/telegraf.conf
Normal file
10
plugins/inputs/gnmi/testcases/issue_12831/telegraf.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
prefix_tag_key_with_path = true
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "optical_channel"
|
||||
path = "/components/component[name=*]"
|
||||
subscription_mode = "sample"
|
||||
origin = "openconfig-platform"
|
||||
sample_interval = "10s"
|
1
plugins/inputs/gnmi/testcases/issue_12931/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_12931/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
interface,name=ethernet-1/1,source=127.0.0.1 interface=1i,transceiver=2i,ethernet=3i,ethernet/flow_control="false",sflow="disable" 1679648530391910312
|
94
plugins/inputs/gnmi/testcases/issue_12931/responses.json
Normal file
94
plugins/inputs/gnmi/testcases/issue_12931/responses.json
Normal file
|
@ -0,0 +1,94 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1679648530391910312",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"origin": "srl_nokia-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"ethernet-1/1"}
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"intVal": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "srl_nokia-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"ethernet-1/1"}
|
||||
},
|
||||
{
|
||||
"name": "transceiver"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"intVal": "2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "srl_nokia-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"ethernet-1/1"}
|
||||
},
|
||||
{
|
||||
"name": "ethernet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"intVal": "3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "srl_nokia-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"ethernet-1/1"}
|
||||
},
|
||||
{
|
||||
"name": "ethernet"
|
||||
},
|
||||
{
|
||||
"name": "flow-control"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "srl_nokia-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"ethernet-1/1"}
|
||||
},
|
||||
{
|
||||
"name": "sflow"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "disable"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
10
plugins/inputs/gnmi/testcases/issue_12931/telegraf.conf
Normal file
10
plugins/inputs/gnmi/testcases/issue_12931/telegraf.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interface"
|
||||
path = "/interface"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
119
plugins/inputs/gnmi/testcases/issue_13052/expected.out
Normal file
119
plugins/inputs/gnmi/testcases/issue_13052/expected.out
Normal file
|
@ -0,0 +1,119 @@
|
|||
components,/components/component/properties/property/name=mem-util-kernel-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=671088216u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=187929304u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=28i 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifd-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=97240u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifd-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=442u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifd-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifd-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifl-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=95272u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifl-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=132u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifl-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-ifl-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-iff-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=38640u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-iff-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=178u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-iff-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-iff-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=82592u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=914609u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=914255u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rtt-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=7212u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rtt-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=25u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rtt-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rtt-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-nh-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=180544u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-nh-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=519u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-nh-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=21u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-nh-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-filter-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=144380u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-filter-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2674u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-filter-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=739u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-filter-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=41488u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=383u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=53u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-halp-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=482008u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-halp-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=102u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-halp-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-cos-halp-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-mac-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=20u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-mac-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-mac-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-rt-mac-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpdl-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=364u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpdl-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=16u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpdl-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=9u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpdl-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=56u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=104u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-fpb-syms-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-agent-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=19548u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-agent-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1679742u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-agent-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1679691u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-agent-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-an-stats-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=5503680u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-an-stats-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=10192u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-an-stats-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-an-stats-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=72u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=12u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=6u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-resolve-bind-point-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=95436u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2812u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1435u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-entry-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=33920u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=546u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-tcam-entry-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=448u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=40u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=24u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-id-entry-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=9216u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=62u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=24u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-bmap-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=49172u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2257u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1140u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-hw-hdl-rule-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=72u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-lagmatch-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=372008u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4444u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1628u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-cntr-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=192544u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=600u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=240u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-policer-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=984u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=83u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=1u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-dfw-misc-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=92u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-allocations,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=3u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-frees,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=2u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-kernel-halp-unknown-allocations-failed,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=0u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-dma-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=67108864u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-dma-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=4655312u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-dma-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=6i 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-pkt-dma-desc-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=12582912u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-pkt-dma-desc-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=10257712u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-pkt-dma-desc-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=81i 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-bcm-sdk-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=268435456u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-bcm-sdk-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=157163104u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-bcm-sdk-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=58i 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-packet-dma-size,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=113246208u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-packet-dma-bytes-allocated,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=56030424u 1688641479762000000
|
||||
components,/components/component/properties/property/name=mem-util-packet-dma-utilization,name=FPC0:CPU0,path=/components/component/properties,source=127.0.0.1 component/properties/property/state/value=49i 1688641479762000000
|
2524
plugins/inputs/gnmi/testcases/issue_13052/responses.json
Normal file
2524
plugins/inputs/gnmi/testcases/issue_13052/responses.json
Normal file
File diff suppressed because it is too large
Load diff
13
plugins/inputs/gnmi/testcases/issue_13052/telegraf.conf
Normal file
13
plugins/inputs/gnmi/testcases/issue_13052/telegraf.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
redial = "10s"
|
||||
|
||||
[inputs.gnmi.aliases]
|
||||
components = "/components"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "memory"
|
||||
origin = "openconfig"
|
||||
path = "/junos/system/linecard/cpu/memory"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "60s"
|
1
plugins/inputs/gnmi/testcases/issue_13512/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_13512/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
interfaces,name=eth42,path=openconfig-interfaces:/interfaces/interface,source=127.0.0.1 descr="eth42",id=42425u,in_pkts=5678u,out_pkts=5125u 1673608605875353770
|
79
plugins/inputs/gnmi/testcases/issue_13512/responses.json
Normal file
79
plugins/inputs/gnmi/testcases/issue_13512/responses.json
Normal file
|
@ -0,0 +1,79 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1673608605875353770",
|
||||
"prefix": {
|
||||
"origin": "openconfig-interfaces",
|
||||
"elem": [
|
||||
{
|
||||
"name": "interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key":{"name":"eth42"}
|
||||
}
|
||||
],
|
||||
"target": "subscription"
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "descr"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "eth42"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "config"
|
||||
},
|
||||
{
|
||||
"name": "id"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "42425"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "in-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "5678"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "out-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "5125"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
22
plugins/inputs/gnmi/testcases/issue_13512/telegraf.conf
Normal file
22
plugins/inputs/gnmi/testcases/issue_13512/telegraf.conf
Normal file
|
@ -0,0 +1,22 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/descr"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/config/id"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/interfaces/interface/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
1
plugins/inputs/gnmi/testcases/issue_14044/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_14044/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
ifdesc,name=FourHundredGigE0/2/0/3,path=openconfig-interfaces:/interfaces/interface/state,source=127.0.0.1 description="REDACTED" 1696324083211000000
|
33
plugins/inputs/gnmi/testcases/issue_14044/responses.json
Normal file
33
plugins/inputs/gnmi/testcases/issue_14044/responses.json
Normal file
|
@ -0,0 +1,33 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1696324083211000000",
|
||||
"prefix": {
|
||||
"origin": "openconfig-interfaces"
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key": {
|
||||
"name": "FourHundredGigE0/2/0/3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"json_ietf_val": "eyJkZXNjcmlwdGlvbiI6IlJFREFDVEVEIn0="
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
13
plugins/inputs/gnmi/testcases/issue_14044/telegraf.conf
Normal file
13
plugins/inputs/gnmi/testcases/issue_14044/telegraf.conf
Normal file
|
@ -0,0 +1,13 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
encoding = "json_ietf"
|
||||
path_guessing_strategy = "common path"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "ifdesc"
|
||||
origin = "openconfig-interfaces"
|
||||
path = '/interfaces/interface[name=FourHundredGigE*]/state/description'
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "60s"
|
1
plugins/inputs/gnmi/testcases/issue_14063/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_14063/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
ifcounters,path=oc-if:/interfaces/oc-if:interface/oc-if:state/oc-if:counters,source=127.0.0.1 in_1024_to_1518_octet_pkts=0u,in_128_to_255_octet_pkts=0u,in_1519_to_2047_octet_pkts=0u,in_2048_to_4095_octet_pkts=0u,in_256_to_511_octet_pkts=0u,in_4096_to_9216_octet_pkts=0u,in_512_to_1023_octet_pkts=0u,in_64_octet_pkts=0u,in_65_to_127_octet_pkts=0u,in_broadcast_pkts=0u,in_crc_error_pkts=0u,in_discards=0u,in_discards_octets=0u,in_dropped_octets=0u,in_dropped_pkts=0u,in_errors=0u,in_jabber_pkts=0u,in_multicast_pkts=0u,in_octets=0u,in_oversize_pkts=0u,in_pkts=0u,in_undersize_pkts=0u,in_unicast_pkts=0u,last_clear=1691859140059797458u,link_flap_events=0u,name="\\\"1\\",out_1519_to_2047_octet_pkts=0u,out_2048_to_4095_octet_pkts=0u,out_4096_to_9216_octet_pkts=0u,out_broadcast_pkts=0u,out_errors=0u,out_multicast_pkts=0u,out_octets=0u,out_pkts=0u,out_unicast_pkts=0u 1696617695101000000
|
445
plugins/inputs/gnmi/testcases/issue_14063/responses.json
Normal file
445
plugins/inputs/gnmi/testcases/issue_14063/responses.json
Normal file
|
@ -0,0 +1,445 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1696617695101000000",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "oc-if:interfaces"
|
||||
},
|
||||
{
|
||||
"name": "oc-if:interface"
|
||||
},
|
||||
{
|
||||
"name": "oc-if:state"
|
||||
},
|
||||
{
|
||||
"name": "oc-if:counters"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-1024-to-1518-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-128-to-255-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-1519-to-2047-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-2048-to-4095-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-256-to-511-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-4096-to-9216-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-512-to-1023-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-64-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-65-to-127-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-broadcast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-crc-error-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-discards"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-discards-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-dropped-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-dropped-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-jabber-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-multicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-oversize-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-undersize-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-unicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "last-clear"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "1691859140059797458"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "link-flap-events"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "name"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "\\\"1\\"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-1519-to-2047-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-2048-to-4095-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-4096-to-9216-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-broadcast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-multicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-unicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
11
plugins/inputs/gnmi/testcases/issue_14063/telegraf.conf
Normal file
11
plugins/inputs/gnmi/testcases/issue_14063/telegraf.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
name_override = "gnmi"
|
||||
redial = "10s"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "ifcounters"
|
||||
origin = "openconfig-interfaces"
|
||||
path = "/oc-if:interfaces/oc-if:interface/oc-if:state/oc-if:counters"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "30s"
|
1
plugins/inputs/gnmi/testcases/issue_14530/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_14530/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
ifcounters,name=Ethernet35,path=/interfaces/interface/state/counters,source=127.0.0.1 in_broadcast_pkts=0u,in_discards=0u,in_errors=0u,in_fcs_errors=0u,in_multicast_pkts=0u,in_octets=0u,in_pkts=0u,in_unicast_pkts=0u,out_broadcast_pkts=0u,out_discards=0u,out_errors=0u,out_multicast_pkts=0u,out_octets=0u,out_pkts=0u,out_unicast_pkts=0u 1704442117721474264
|
208
plugins/inputs/gnmi/testcases/issue_14530/responses.json
Normal file
208
plugins/inputs/gnmi/testcases/issue_14530/responses.json
Normal file
|
@ -0,0 +1,208 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1704442117721474264",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key": {
|
||||
"name": "Ethernet35"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "counters"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-broadcast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-discards"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-fcs-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-multicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-unicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-broadcast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-discards"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-multicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-unicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
14
plugins/inputs/gnmi/testcases/issue_14530/telegraf.conf
Normal file
14
plugins/inputs/gnmi/testcases/issue_14530/telegraf.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
encoding = "json_ietf"
|
||||
tagexclude = ["path"]
|
||||
|
||||
[inputs.gnmi.tags]
|
||||
test_tag = "test"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "ifcounters"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/state/counters"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
2
plugins/inputs/gnmi/testcases/issue_14833/expected.out
Normal file
2
plugins/inputs/gnmi/testcases/issue_14833/expected.out
Normal file
|
@ -0,0 +1,2 @@
|
|||
interfaces-counter,name=AppGigabitEthernet1/0/1,source=127.0.0.1 discontinuity_time="2023-11-15T05:50:40+00:00" 1708069483623763000
|
||||
interfaces-counter,name=FortyGigabitEthernet1/1/1,source=127.0.0.1 discontinuity_time="2023-11-15T05:50:40+00:00" 1708069483623763000
|
51
plugins/inputs/gnmi/testcases/issue_14833/responses.json
Normal file
51
plugins/inputs/gnmi/testcases/issue_14833/responses.json
Normal file
|
@ -0,0 +1,51 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1708069483623763000",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "Cisco-IOS-XE-interfaces-oper:interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key": {
|
||||
"name": "AppGigabitEthernet1/0/1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "statistics"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJkaXNjb250aW51aXR5LXRpbWUiOiIyMDIzLTExLTE1VDA1OjUwOjQwKzAwOjAwIn0K"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "Cisco-IOS-XE-interfaces-oper:interfaces"
|
||||
},
|
||||
{
|
||||
"name": "interface",
|
||||
"key": {
|
||||
"name": "FortyGigabitEthernet1/1/1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "statistics"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJkaXNjb250aW51aXR5LXRpbWUiOiIyMDIzLTExLTE1VDA1OjUwOjQwKzAwOjAwIn0K"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
9
plugins/inputs/gnmi/testcases/issue_14833/telegraf.conf
Normal file
9
plugins/inputs/gnmi/testcases/issue_14833/telegraf.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces-counter"
|
||||
origin = "rfc7951"
|
||||
path = "/Cisco-IOS-XE-interfaces-oper:interfaces/interface/statistics"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "5s"
|
4
plugins/inputs/gnmi/testcases/issue_14946/expected.out
Normal file
4
plugins/inputs/gnmi/testcases/issue_14946/expected.out
Normal file
|
@ -0,0 +1,4 @@
|
|||
gnmi_sys_memory,path=/system/memory/state,source=127.0.0.1 reserved=6359478272u,used=3479629824u 1709737743568119333
|
||||
gnmi_sys_memory,path=/system/memory/state,source=127.0.0.1 used=3479527424u 1709737753565697718
|
||||
gnmi_sys_cpu,index=ALL,path=/system/cpus/cpu/state,source=127.0.0.1 hardware_interrupt/min_time=1709805333568034887u 1709805333566280930
|
||||
gnmi_sys_cpu,index=ALL,path=/system/cpus/cpu/state,source=127.0.0.1 hardware_interrupt/min_time=1709805343567684412u,idle/avg=89u,idle/instant=90u 1709805343565718902
|
182
plugins/inputs/gnmi/testcases/issue_14946/responses.json
Normal file
182
plugins/inputs/gnmi/testcases/issue_14946/responses.json
Normal file
|
@ -0,0 +1,182 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709737743568119333",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "memory"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "reserved"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "6359478272"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "used"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "3479629824"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709737753565697718",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "memory"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "used"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "3479527424"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709805333566280930",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "cpus"
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"key": {
|
||||
"index": "ALL"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "hardware-interrupt"
|
||||
},
|
||||
{
|
||||
"name": "min-time"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "1709805333568034887"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709805343565718902",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "cpus"
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"key": {
|
||||
"index": "ALL"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "hardware-interrupt"
|
||||
},
|
||||
{
|
||||
"name": "min-time"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "1709805343567684412"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "idle"
|
||||
},
|
||||
{
|
||||
"name": "avg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "89"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "idle"
|
||||
},
|
||||
{
|
||||
"name": "instant"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "90"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
15
plugins/inputs/gnmi/testcases/issue_14946/telegraf.conf
Normal file
15
plugins/inputs/gnmi/testcases/issue_14946/telegraf.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
path_guessing_strategy = "subscription"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "gnmi_sys_cpu"
|
||||
path = "/system/cpus/cpu/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "gnmi_sys_memory"
|
||||
path = "/system/memory/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
|
@ -0,0 +1,4 @@
|
|||
gnmi_sys_memory,path=/system/memory/state,source=127.0.0.1 /system/memory/state/reserved=6359478272u,/system/memory/state/used=3479629824u 1709737743568119333
|
||||
gnmi_sys_memory,source=127.0.0.1 /system/memory/state/used=3479527424u 1709737753565697718
|
||||
gnmi_sys_cpu,index=ALL,source=127.0.0.1 /system/cpus/cpu/state/hardware_interrupt/min_time=1709805333568034887u 1709805333566280930
|
||||
gnmi_sys_cpu,index=ALL,path=/system/cpus/cpu/state,source=127.0.0.1 /system/cpus/cpu/state/hardware_interrupt/min_time=1709805343567684412u,/system/cpus/cpu/state/idle/avg=89u,/system/cpus/cpu/state/idle/instant=90u 1709805343565718902
|
|
@ -0,0 +1,182 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709737743568119333",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "memory"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "reserved"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "6359478272"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "used"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "3479629824"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709737753565697718",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "memory"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "used"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "3479527424"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709805333566280930",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "cpus"
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"key": {
|
||||
"index": "ALL"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "hardware-interrupt"
|
||||
},
|
||||
{
|
||||
"name": "min-time"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "1709805333568034887"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1709805343565718902",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "system"
|
||||
},
|
||||
{
|
||||
"name": "cpus"
|
||||
},
|
||||
{
|
||||
"name": "cpu",
|
||||
"key": {
|
||||
"index": "ALL"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "hardware-interrupt"
|
||||
},
|
||||
{
|
||||
"name": "min-time"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "1709805343567684412"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "idle"
|
||||
},
|
||||
{
|
||||
"name": "avg"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "89"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "idle"
|
||||
},
|
||||
{
|
||||
"name": "instant"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "90"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
|
@ -0,0 +1,15 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
canonical_field_names = true
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "gnmi_sys_cpu"
|
||||
path = "/system/cpus/cpu/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "gnmi_sys_memory"
|
||||
path = "/system/memory/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
5
plugins/inputs/gnmi/testcases/issue_15046/expected.out
Normal file
5
plugins/inputs/gnmi/testcases/issue_15046/expected.out
Normal file
|
@ -0,0 +1,5 @@
|
|||
psu,name=PowerSupply1/A,path=openconfig:/components/component/power-supply/state,source=127.0.0.1 openconfig_platform_psu:capacity=715,openconfig_platform_psu:enabled=true,openconfig_platform_psu:input_current=0.47099998593330383,openconfig_platform_psu:input_voltage=208.5,openconfig_platform_psu:output_current=1.2029999494552612,openconfig_platform_psu:output_power=68.625,openconfig_platform_psu:output_voltage=56.367000579833984 1711178737105194000
|
||||
psu,name=PowerSupply1/B,path=openconfig:/components/component/power-supply/state,source=127.0.0.1 openconfig_platform_psu:capacity=715,openconfig_platform_psu:enabled=true,openconfig_platform_psu:input_current=0.3930000066757202,openconfig_platform_psu:input_voltage=209.75,openconfig_platform_psu:output_current=0.9380000233650208,openconfig_platform_psu:output_power=51.875,openconfig_platform_psu:output_voltage=56.367000579833984 1711178737105194000
|
||||
temp,name=InletTempSensor1,path=openconfig:/components/component/state/temperature,source=127.0.0.1 alarm_severity="openconfig-alarm-types:MINOR",alarm_status=false,alarm_threshold=0,avg=24.000000,instant=35.000000,interval=180000000000u,max=36.000000,min=0.000000 1715838159171548000
|
||||
temp,name=OutletTempSensor1,path=openconfig:/components/component/state/temperature,source=127.0.0.1 alarm_severity="openconfig-alarm-types:MINOR",alarm_status=false,alarm_threshold=0,avg=29.000000,instant=44.000000,interval=180000000000u,max=44.000000,min=0.000000 1715838159171548000
|
||||
temp,name=HotSpotTempSensor1,path=openconfig:/components/component/state/temperature,source=127.0.0.1 alarm_severity="openconfig-alarm-types:MINOR",alarm_status=false,alarm_threshold=0,avg=39.000000,instant=58.000000,interval=180000000000u,max=59.000000,min=0.000000 1715838159171548000
|
202
plugins/inputs/gnmi/testcases/issue_15046/models/LICENSE
Normal file
202
plugins/inputs/gnmi/testcases/issue_15046/models/LICENSE
Normal file
|
@ -0,0 +1,202 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<!-- markdownlint-disable -->
|
||||
Files extracted from https://github.com/openconfig/public
|
|
@ -0,0 +1,109 @@
|
|||
module openconfig-alarm-types {
|
||||
|
||||
yang-version "1";
|
||||
|
||||
// namespace
|
||||
namespace "http://openconfig.net/yang/alarms/types";
|
||||
|
||||
prefix "oc-alarm-types";
|
||||
|
||||
// import some basic types
|
||||
import openconfig-extensions { prefix oc-ext; }
|
||||
|
||||
// meta
|
||||
organization "OpenConfig working group";
|
||||
|
||||
contact
|
||||
"OpenConfig working group
|
||||
www.openconfig.net";
|
||||
|
||||
description
|
||||
"This module defines operational state data related to alarms
|
||||
that the device is reporting.
|
||||
|
||||
This model reuses some data items defined in the draft IETF
|
||||
YANG Alarm Module:
|
||||
https://tools.ietf.org/html/draft-vallin-netmod-alarm-module-02
|
||||
|
||||
Portions of this code were derived from the draft IETF YANG Alarm
|
||||
Module. Please reproduce this note if possible.
|
||||
|
||||
IETF code is subject to the following copyright and license:
|
||||
Copyright (c) IETF Trust and the persons identified as authors of
|
||||
the code.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, is permitted pursuant to, and subject to the license
|
||||
terms contained in, the Simplified BSD License set forth in
|
||||
Section 4.c of the IETF Trust's Legal Provisions Relating
|
||||
to IETF Documents (http://trustee.ietf.org/license-info).";
|
||||
|
||||
oc-ext:openconfig-version "0.2.1";
|
||||
|
||||
// OpenConfig specific extensions for module metadata.
|
||||
oc-ext:regexp-posix;
|
||||
oc-ext:catalog-organization "openconfig";
|
||||
oc-ext:origin "openconfig";
|
||||
|
||||
// identity statements
|
||||
|
||||
identity OPENCONFIG_ALARM_SEVERITY {
|
||||
description
|
||||
"Base identity for alarm severity profiles. Derived
|
||||
identities are based on contents of the draft
|
||||
IETF YANG Alarm Module";
|
||||
reference
|
||||
"IETF YANG Alarm Module: Draft - typedef severity
|
||||
https://tools.ietf.org/html/draft-vallin-netmod-alarm-module-02";
|
||||
|
||||
}
|
||||
|
||||
identity UNKNOWN {
|
||||
base OPENCONFIG_ALARM_SEVERITY;
|
||||
description
|
||||
"Indicates that the severity level could not be determined.
|
||||
This level SHOULD be avoided.";
|
||||
}
|
||||
|
||||
identity MINOR {
|
||||
base OPENCONFIG_ALARM_SEVERITY;
|
||||
description
|
||||
"Indicates the existence of a non-service affecting fault
|
||||
condition and that corrective action should be taken in
|
||||
order to prevent a more serious (for example, service
|
||||
affecting) fault. Such a severity can be reported, for
|
||||
example, when the detected alarm condition is not currently
|
||||
degrading the capacity of the resource";
|
||||
}
|
||||
|
||||
identity WARNING {
|
||||
base OPENCONFIG_ALARM_SEVERITY;
|
||||
description
|
||||
"Indicates the detection of a potential or impending service
|
||||
affecting fault, before any significant effects have been felt.
|
||||
Action should be taken to further diagnose (if necessary) and
|
||||
correct the problem in order to prevent it from becoming a more
|
||||
serious service affecting fault.";
|
||||
}
|
||||
|
||||
identity MAJOR {
|
||||
base OPENCONFIG_ALARM_SEVERITY;
|
||||
description
|
||||
"Indicates that a service affecting condition has developed
|
||||
and an urgent corrective action is required. Such a severity
|
||||
can be reported, for example, when there is a severe
|
||||
degradation in the capability of the resource and its full
|
||||
capability must be restored.";
|
||||
}
|
||||
|
||||
identity CRITICAL {
|
||||
base OPENCONFIG_ALARM_SEVERITY;
|
||||
description
|
||||
"Indicates that a service affecting condition has occurred
|
||||
and an immediate corrective action is required. Such a
|
||||
severity can be reported, for example, when a resource becomes
|
||||
totally out of service and its capability must be restored.";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
module openconfig-extensions {
|
||||
|
||||
yang-version "1";
|
||||
|
||||
// namespace
|
||||
namespace "http://openconfig.net/yang/openconfig-ext";
|
||||
|
||||
prefix "oc-ext";
|
||||
|
||||
// meta
|
||||
organization "OpenConfig working group";
|
||||
|
||||
contact
|
||||
"OpenConfig working group
|
||||
www.openconfig.net";
|
||||
|
||||
description
|
||||
"This module provides extensions to the YANG language to allow
|
||||
OpenConfig specific functionality and meta-data to be defined.";
|
||||
|
||||
oc-ext:openconfig-version "0.5.1";
|
||||
|
||||
// extension statements
|
||||
extension openconfig-version {
|
||||
argument "semver" {
|
||||
yin-element false;
|
||||
}
|
||||
description
|
||||
"The OpenConfig version number for the module. This is
|
||||
expressed as a semantic version number of the form:
|
||||
x.y.z
|
||||
where:
|
||||
* x corresponds to the major version,
|
||||
* y corresponds to a minor version,
|
||||
* z corresponds to a patch version.
|
||||
This version corresponds to the model file within which it is
|
||||
defined, and does not cover the whole set of OpenConfig models.
|
||||
|
||||
Individual YANG modules are versioned independently -- the
|
||||
semantic version is generally incremented only when there is a
|
||||
change in the corresponding file. Submodules should always
|
||||
have the same semantic version as their parent modules.
|
||||
|
||||
A major version number of 0 indicates that this model is still
|
||||
in development (whether within OpenConfig or with industry
|
||||
partners), and is potentially subject to change.
|
||||
|
||||
Following a release of major version 1, all modules will
|
||||
increment major revision number where backwards incompatible
|
||||
changes to the model are made.
|
||||
|
||||
The minor version is changed when features are added to the
|
||||
model that do not impact current clients use of the model.
|
||||
|
||||
The patch-level version is incremented when non-feature changes
|
||||
(such as bugfixes or clarifications to human-readable
|
||||
descriptions that do not impact model functionality) are made
|
||||
that maintain backwards compatibility.
|
||||
|
||||
The version number is stored in the module meta-data.";
|
||||
}
|
||||
|
||||
extension regexp-posix {
|
||||
description
|
||||
"This extension indicates that the regular expressions included
|
||||
within the YANG module specified are conformant with the POSIX
|
||||
regular expression format rather than the W3C standard that is
|
||||
specified by RFC6020 and RFC7950.";
|
||||
}
|
||||
|
||||
extension operational {
|
||||
description
|
||||
"The operational annotation is specified in the context of a
|
||||
grouping, leaf, or leaf-list within a YANG module. It indicates
|
||||
that the nodes within the context are derived state on the device.
|
||||
|
||||
OpenConfig data models divide nodes into the following three categories:
|
||||
|
||||
- intended configuration - these are leaves within a container named
|
||||
'config', and are the writable configuration of a target.
|
||||
- applied configuration - these are leaves within a container named
|
||||
'state' and are the currently running value of the intended configuration.
|
||||
- derived state - these are the values within the 'state' container which
|
||||
are not part of the applied configuration of the device. Typically, they
|
||||
represent state values reflecting underlying operational counters, or
|
||||
protocol statuses.";
|
||||
}
|
||||
|
||||
extension catalog-organization {
|
||||
argument "org" {
|
||||
yin-element false;
|
||||
}
|
||||
description
|
||||
"This extension specifies the organization name that should be used within
|
||||
the module catalogue on the device for the specified YANG module. It stores
|
||||
a pithy string where the YANG organization statement may contain more
|
||||
details.";
|
||||
}
|
||||
|
||||
extension origin {
|
||||
argument "origin" {
|
||||
yin-element false;
|
||||
}
|
||||
description
|
||||
"This extension specifies the name of the origin that the YANG module
|
||||
falls within. This allows multiple overlapping schema trees to be used
|
||||
on a single network element without requiring module based prefixing
|
||||
of paths.";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
module openconfig-platform-psu {
|
||||
|
||||
yang-version "1";
|
||||
|
||||
// namespace
|
||||
namespace "http://openconfig.net/yang/platform/psu";
|
||||
|
||||
prefix "oc-platform-psu";
|
||||
|
||||
// import some basic types
|
||||
import openconfig-extensions { prefix oc-ext; }
|
||||
import openconfig-types { prefix oc-types; }
|
||||
|
||||
|
||||
// meta
|
||||
organization "OpenConfig working group";
|
||||
|
||||
contact
|
||||
"OpenConfig working group
|
||||
www.openconfig.net";
|
||||
|
||||
description
|
||||
"This module defines a schema for power supply components in
|
||||
the OpenConfig platform model.";
|
||||
|
||||
oc-ext:openconfig-version "0.2.1";
|
||||
|
||||
// OpenConfig specific extensions for module metadata.
|
||||
oc-ext:regexp-posix;
|
||||
oc-ext:catalog-organization "openconfig";
|
||||
oc-ext:origin "openconfig";
|
||||
|
||||
grouping psu-config {
|
||||
description
|
||||
"Configuration data for power supply components";
|
||||
|
||||
leaf enabled {
|
||||
type boolean;
|
||||
default true;
|
||||
description
|
||||
"Adminsitrative control on the on/off state of the power
|
||||
supply unit.";
|
||||
}
|
||||
}
|
||||
|
||||
grouping psu-state {
|
||||
description
|
||||
"Operational state data for power supply components";
|
||||
|
||||
leaf capacity {
|
||||
type oc-types:ieeefloat32;
|
||||
units watts;
|
||||
description
|
||||
"Maximum power capacity of the power supply.";
|
||||
}
|
||||
|
||||
leaf input-current {
|
||||
type oc-types:ieeefloat32;
|
||||
units amps;
|
||||
description
|
||||
"The input current draw of the power supply.";
|
||||
}
|
||||
|
||||
leaf input-voltage {
|
||||
type oc-types:ieeefloat32;
|
||||
units volts;
|
||||
description
|
||||
"Input voltage to the power supply.";
|
||||
}
|
||||
|
||||
leaf output-current {
|
||||
type oc-types:ieeefloat32;
|
||||
units amps;
|
||||
description
|
||||
"The output current supplied by the power supply.";
|
||||
}
|
||||
|
||||
leaf output-voltage {
|
||||
type oc-types:ieeefloat32;
|
||||
units volts;
|
||||
description
|
||||
"Output voltage supplied by the power supply.";
|
||||
}
|
||||
|
||||
leaf output-power {
|
||||
type oc-types:ieeefloat32;
|
||||
units watts;
|
||||
description
|
||||
"Output power supplied by the power supply.";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
module openconfig-platform-types {
|
||||
|
||||
yang-version "1";
|
||||
|
||||
// namespace
|
||||
namespace "http://openconfig.net/yang/platform-types";
|
||||
|
||||
prefix "oc-platform-types";
|
||||
|
||||
import openconfig-types { prefix oc-types; }
|
||||
import openconfig-extensions { prefix oc-ext; }
|
||||
|
||||
// meta
|
||||
organization
|
||||
"OpenConfig working group";
|
||||
|
||||
contact
|
||||
"OpenConfig working group
|
||||
www.openconfig.net";
|
||||
|
||||
description
|
||||
"This module defines data types (e.g., YANG identities)
|
||||
to support the OpenConfig component inventory model.";
|
||||
|
||||
oc-ext:openconfig-version "1.6.0";
|
||||
|
||||
// OpenConfig specific extensions for module metadata.
|
||||
oc-ext:regexp-posix;
|
||||
oc-ext:catalog-organization "openconfig";
|
||||
oc-ext:origin "openconfig";
|
||||
|
||||
// grouping statements
|
||||
grouping avg-min-max-instant-stats-precision1-celsius {
|
||||
description
|
||||
"Common grouping for recording temperature values in
|
||||
Celsius with 1 decimal precision. Values include the
|
||||
instantaneous, average, minimum, and maximum statistics";
|
||||
|
||||
leaf instant {
|
||||
type decimal64 {
|
||||
fraction-digits 1;
|
||||
}
|
||||
units celsius;
|
||||
description
|
||||
"The instantaneous value of the statistic.";
|
||||
}
|
||||
|
||||
leaf avg {
|
||||
type decimal64 {
|
||||
fraction-digits 1;
|
||||
}
|
||||
units celsius;
|
||||
description
|
||||
"The arithmetic mean value of the statistic over the
|
||||
sampling period.";
|
||||
}
|
||||
|
||||
leaf min {
|
||||
type decimal64 {
|
||||
fraction-digits 1;
|
||||
}
|
||||
units celsius;
|
||||
description
|
||||
"The minimum value of the statistic over the sampling
|
||||
period";
|
||||
}
|
||||
|
||||
leaf max {
|
||||
type decimal64 {
|
||||
fraction-digits 1;
|
||||
}
|
||||
units celsius;
|
||||
description
|
||||
"The maximum value of the statistic over the sampling
|
||||
period";
|
||||
}
|
||||
|
||||
uses oc-types:stat-interval-state;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,162 @@
|
|||
module openconfig-platform {
|
||||
|
||||
yang-version "1";
|
||||
|
||||
// namespace
|
||||
namespace "http://openconfig.net/yang/platform";
|
||||
|
||||
prefix "oc-platform";
|
||||
|
||||
import openconfig-platform-types { prefix oc-platform-types; }
|
||||
import openconfig-extensions { prefix oc-ext; }
|
||||
import openconfig-alarm-types { prefix oc-alarm-types; }
|
||||
|
||||
// meta
|
||||
organization "OpenConfig working group";
|
||||
|
||||
contact
|
||||
"OpenConfig working group
|
||||
www.openconfig.net";
|
||||
|
||||
description
|
||||
"This module defines a data model for representing a system
|
||||
component inventory, which can include hardware or software
|
||||
elements arranged in an arbitrary structure. The primary
|
||||
relationship supported by the model is containment, e.g.,
|
||||
components containing subcomponents.
|
||||
|
||||
It is expected that this model reflects every field replacable
|
||||
unit on the device at a minimum (i.e., additional information
|
||||
may be supplied about non-replacable components).
|
||||
|
||||
Every element in the inventory is termed a 'component' with each
|
||||
component expected to have a unique name and type, and optionally
|
||||
a unique system-assigned identifier and FRU number. The
|
||||
uniqueness is guaranteed by the system within the device.
|
||||
|
||||
Components may have properties defined by the system that are
|
||||
modeled as a list of key-value pairs. These may or may not be
|
||||
user-configurable. The model provides a flag for the system
|
||||
to optionally indicate which properties are user configurable.
|
||||
|
||||
Each component also has a list of 'subcomponents' which are
|
||||
references to other components. Appearance in a list of
|
||||
subcomponents indicates a containment relationship as described
|
||||
above. For example, a linecard component may have a list of
|
||||
references to port components that reside on the linecard.
|
||||
|
||||
This schema is generic to allow devices to express their own
|
||||
platform-specific structure. It may be augmented by additional
|
||||
component type-specific schemas that provide a common structure
|
||||
for well-known component types. In these cases, the system is
|
||||
expected to populate the common component schema, and may
|
||||
optionally also represent the component and its properties in the
|
||||
generic structure.
|
||||
|
||||
The properties for each component may include dynamic values,
|
||||
e.g., in the 'state' part of the schema. For example, a CPU
|
||||
component may report its utilization, temperature, or other
|
||||
physical properties. The intent is to capture all platform-
|
||||
specific physical data in one location, including inventory
|
||||
(presence or absence of a component) and state (physical
|
||||
attributes or status).";
|
||||
|
||||
oc-ext:openconfig-version "0.24.0";
|
||||
|
||||
// OpenConfig specific extensions for module metadata.
|
||||
oc-ext:regexp-posix;
|
||||
oc-ext:catalog-organization "openconfig";
|
||||
oc-ext:origin "openconfig";
|
||||
|
||||
// grouping statements
|
||||
|
||||
grouping platform-component-temp-alarm-state {
|
||||
description
|
||||
"Temperature alarm data for platform components";
|
||||
|
||||
// TODO(aashaikh): consider if these leaves could be in a
|
||||
// reusable grouping (not temperature-specific); threshold
|
||||
// may always need to be units specific.
|
||||
|
||||
leaf alarm-status {
|
||||
type boolean;
|
||||
description
|
||||
"A value of true indicates the alarm has been raised or
|
||||
asserted. The value should be false when the alarm is
|
||||
cleared.";
|
||||
}
|
||||
|
||||
leaf alarm-threshold {
|
||||
type uint32;
|
||||
description
|
||||
"The threshold value that was crossed for this alarm.";
|
||||
}
|
||||
|
||||
leaf alarm-severity {
|
||||
type identityref {
|
||||
base oc-alarm-types:OPENCONFIG_ALARM_SEVERITY;
|
||||
}
|
||||
description
|
||||
"The severity of the current alarm.";
|
||||
}
|
||||
}
|
||||
|
||||
grouping platform-component-temp-state {
|
||||
description
|
||||
"Temperature state data for device components";
|
||||
|
||||
container temperature {
|
||||
description
|
||||
"Temperature in degrees Celsius of the component. Values include
|
||||
the instantaneous, average, minimum, and maximum statistics. If
|
||||
avg/min/max statistics are not supported, the target is expected
|
||||
to just supply the instant value";
|
||||
|
||||
uses oc-platform-types:avg-min-max-instant-stats-precision1-celsius;
|
||||
uses platform-component-temp-alarm-state;
|
||||
}
|
||||
}
|
||||
|
||||
grouping platform-component-top {
|
||||
description
|
||||
"Top-level grouping for components in the device inventory";
|
||||
|
||||
container components {
|
||||
description
|
||||
"Enclosing container for the components in the system.";
|
||||
|
||||
list component {
|
||||
key "name";
|
||||
description
|
||||
"List of components, keyed by component name.";
|
||||
|
||||
leaf name {
|
||||
type leafref {
|
||||
path "../config/name";
|
||||
}
|
||||
description
|
||||
"References the component name";
|
||||
}
|
||||
|
||||
container state {
|
||||
config false;
|
||||
|
||||
description
|
||||
"Operational state data for each component";
|
||||
|
||||
uses platform-component-temp-state;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// data definition statements
|
||||
|
||||
uses platform-component-top;
|
||||
|
||||
|
||||
// augments
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
module openconfig-types {
|
||||
yang-version "1";
|
||||
|
||||
namespace "http://openconfig.net/yang/openconfig-types";
|
||||
|
||||
prefix "oc-types";
|
||||
|
||||
// import statements
|
||||
import openconfig-extensions { prefix oc-ext; }
|
||||
|
||||
// meta
|
||||
organization
|
||||
"OpenConfig working group";
|
||||
|
||||
contact
|
||||
"OpenConfig working group
|
||||
netopenconfig@googlegroups.com";
|
||||
|
||||
description
|
||||
"This module contains a set of general type definitions that
|
||||
are used across OpenConfig models. It can be imported by modules
|
||||
that make use of these types.";
|
||||
|
||||
oc-ext:openconfig-version "1.0.0";
|
||||
|
||||
// OpenConfig specific extensions for module metadata.
|
||||
oc-ext:regexp-posix;
|
||||
oc-ext:catalog-organization "openconfig";
|
||||
oc-ext:origin "openconfig";
|
||||
|
||||
typedef stat-interval {
|
||||
type uint64;
|
||||
units nanoseconds;
|
||||
description
|
||||
"A time interval over which a set of statistics is computed.
|
||||
A common usage is to report the interval over which
|
||||
avg/min/max stats are computed and reported.";
|
||||
}
|
||||
|
||||
grouping stat-interval-state {
|
||||
description
|
||||
"Reusable leaf definition for stats computation interval";
|
||||
|
||||
leaf interval {
|
||||
type oc-types:stat-interval;
|
||||
description
|
||||
"If supported by the system, this reports the time interval
|
||||
over which the min/max/average statistics are computed by
|
||||
the system.";
|
||||
}
|
||||
}
|
||||
|
||||
typedef ieeefloat32 {
|
||||
type binary {
|
||||
length "4";
|
||||
}
|
||||
description
|
||||
"An IEEE 32-bit floating point number. The format of this number
|
||||
is of the form:
|
||||
1-bit sign
|
||||
8-bit exponent
|
||||
23-bit fraction
|
||||
The floating point value is calculated using:
|
||||
(-1)**S * 2**(Exponent-127) * (1+Fraction)";
|
||||
}
|
||||
}
|
141
plugins/inputs/gnmi/testcases/issue_15046/responses.json
Normal file
141
plugins/inputs/gnmi/testcases/issue_15046/responses.json
Normal file
|
@ -0,0 +1,141 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1711178737105194000",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"origin": "openconfig",
|
||||
"elem": [
|
||||
{
|
||||
"name": "components"
|
||||
},
|
||||
{
|
||||
"name": "component",
|
||||
"key": {
|
||||
"name": "PowerSupply1/A"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "power-supply"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJvcGVuY29uZmlnLXBsYXRmb3JtLXBzdTplbmFibGVkIjp0cnVlLCJvcGVuY29uZmlnLXBsYXRmb3JtLXBzdTpjYXBhY2l0eSI6IlJETEFBQT09Iiwib3BlbmNvbmZpZy1wbGF0Zm9ybS1wc3U6aW5wdXQtY3VycmVudCI6IlB2RW02UT09Iiwib3BlbmNvbmZpZy1wbGF0Zm9ybS1wc3U6aW5wdXQtdm9sdGFnZSI6IlExQ0FBQT09Iiwib3BlbmNvbmZpZy1wbGF0Zm9ybS1wc3U6b3V0cHV0LWN1cnJlbnQiOiJQNW43NXc9PSIsIm9wZW5jb25maWctcGxhdGZvcm0tcHN1Om91dHB1dC12b2x0YWdlIjoiUW1GM3p3PT0iLCJvcGVuY29uZmlnLXBsYXRmb3JtLXBzdTpvdXRwdXQtcG93ZXIiOiJRb2xBQUE9PSJ9"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "openconfig",
|
||||
"elem": [
|
||||
{
|
||||
"name": "components"
|
||||
},
|
||||
{
|
||||
"name": "component",
|
||||
"key": {
|
||||
"name": "PowerSupply1/B"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "power-supply"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJvcGVuY29uZmlnLXBsYXRmb3JtLXBzdTplbmFibGVkIjp0cnVlLCJvcGVuY29uZmlnLXBsYXRmb3JtLXBzdTpjYXBhY2l0eSI6IlJETEFBQT09Iiwib3BlbmNvbmZpZy1wbGF0Zm9ybS1wc3U6aW5wdXQtY3VycmVudCI6IlBzazNUQT09Iiwib3BlbmNvbmZpZy1wbGF0Zm9ybS1wc3U6aW5wdXQtdm9sdGFnZSI6IlExSEFBQT09Iiwib3BlbmNvbmZpZy1wbGF0Zm9ybS1wc3U6b3V0cHV0LWN1cnJlbnQiOiJQM0FneFE9PSIsIm9wZW5jb25maWctcGxhdGZvcm0tcHN1Om91dHB1dC12b2x0YWdlIjoiUW1GM3p3PT0iLCJvcGVuY29uZmlnLXBsYXRmb3JtLXBzdTpvdXRwdXQtcG93ZXIiOiJRaytBQUE9PSJ9"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1715838159171548000",
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"origin": "openconfig",
|
||||
"elem": [
|
||||
{
|
||||
"name": "components"
|
||||
},
|
||||
{
|
||||
"name": "component",
|
||||
"key": {
|
||||
"name": "InletTempSensor1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "temperature"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJpbnN0YW50IjoiMzUuMDAwMDAwIiwiYXZnIjoiMjQuMDAwMDAwIiwibWluIjoiMC4wMDAwMDAiLCJtYXgiOiIzNi4wMDAwMDAiLCJpbnRlcnZhbCI6IjE4MDAwMDAwMDAwMCIsImFsYXJtLXN0YXR1cyI6ZmFsc2UsImFsYXJtLXRocmVzaG9sZCI6MCwiYWxhcm0tc2V2ZXJpdHkiOiJvcGVuY29uZmlnLWFsYXJtLXR5cGVzOk1JTk9SIn0="
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "openconfig",
|
||||
"elem": [
|
||||
{
|
||||
"name": "components"
|
||||
},
|
||||
{
|
||||
"name": "component",
|
||||
"key": {
|
||||
"name": "OutletTempSensor1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "temperature"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJpbnN0YW50IjoiNDQuMDAwMDAwIiwiYXZnIjoiMjkuMDAwMDAwIiwibWluIjoiMC4wMDAwMDAiLCJtYXgiOiI0NC4wMDAwMDAiLCJpbnRlcnZhbCI6IjE4MDAwMDAwMDAwMCIsImFsYXJtLXN0YXR1cyI6ZmFsc2UsImFsYXJtLXRocmVzaG9sZCI6MCwiYWxhcm0tc2V2ZXJpdHkiOiJvcGVuY29uZmlnLWFsYXJtLXR5cGVzOk1JTk9SIn0="
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "openconfig",
|
||||
"elem": [
|
||||
{
|
||||
"name": "components"
|
||||
},
|
||||
{
|
||||
"name": "component",
|
||||
"key": {
|
||||
"name": "HotSpotTempSensor1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
},
|
||||
{
|
||||
"name": "temperature"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"jsonIetfVal": "eyJpbnN0YW50IjoiNTguMDAwMDAwIiwiYXZnIjoiMzkuMDAwMDAwIiwibWluIjoiMC4wMDAwMDAiLCJtYXgiOiI1OS4wMDAwMDAiLCJpbnRlcnZhbCI6IjE4MDAwMDAwMDAwMCIsImFsYXJtLXN0YXR1cyI6ZmFsc2UsImFsYXJtLXRocmVzaG9sZCI6MCwiYWxhcm0tc2V2ZXJpdHkiOiJvcGVuY29uZmlnLWFsYXJtLXR5cGVzOk1JTk9SIn0="
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
18
plugins/inputs/gnmi/testcases/issue_15046/telegraf.conf
Normal file
18
plugins/inputs/gnmi/testcases/issue_15046/telegraf.conf
Normal file
|
@ -0,0 +1,18 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
path_guessing_strategy = "subscription"
|
||||
yang_model_paths = ["testcases/issue_15046/models"]
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "psu"
|
||||
origin = "openconfig"
|
||||
path = "/components/component/power-supply/state"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "60s"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "temp"
|
||||
origin = "openconfig"
|
||||
path = "/components/component/state/temperature"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "60s"
|
1
plugins/inputs/gnmi/testcases/issue_15546/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_15546/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
event-stats,path=openconfig-system:/system/openconfig-events:event-stats/state,source=127.0.0.1 state/acked=0u,state/cleared=0u,state/events=4u,state/raised=0u 1718942414831832038
|
70
plugins/inputs/gnmi/testcases/issue_15546/responses.json
Normal file
70
plugins/inputs/gnmi/testcases/issue_15546/responses.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": "1718942414831832038",
|
||||
"prefix": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "openconfig-system:system"
|
||||
},
|
||||
{
|
||||
"name": "openconfig-events:event-stats"
|
||||
},
|
||||
{
|
||||
"name": "state"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "acked"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "cleared"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "events"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"elem": [
|
||||
{
|
||||
"name": "raised"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": "0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
10
plugins/inputs/gnmi/testcases/issue_15546/telegraf.conf
Normal file
10
plugins/inputs/gnmi/testcases/issue_15546/telegraf.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
prefix_tag_key_with_path = true
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "event-stats"
|
||||
origin = "openconfig-system"
|
||||
path = "/system/event-stats"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "10s"
|
1
plugins/inputs/gnmi/testcases/issue_16476/expected.out
Normal file
1
plugins/inputs/gnmi/testcases/issue_16476/expected.out
Normal file
|
@ -0,0 +1 @@
|
|||
ifcounters,path=Ciena:/oc-if:interfaces/oc-if:interface/oc-if:state/oc-if:counters,source=127.0.0.1 in_1024_to_1518_octet_pkts=15680405047u,in_128_to_255_octet_pkts=12809649942u,in_1519_to_2047_octet_pkts=35815850565u,in_2048_to_4095_octet_pkts=0u,in_256_to_511_octet_pkts=5257910993u,in_4096_to_9216_octet_pkts=0u,in_512_to_1023_octet_pkts=6139561818u,in_64_octet_pkts=4u,in_65_to_127_octet_pkts=146456592549u,in_broadcast_pkts=167166u,in_crc_error_pkts=0u,in_discards=236u,in_discards_octets=31492u,in_dropped_octets=31492u,in_dropped_pkts=236u,in_errors=0u,in_jabber_pkts=0u,in_multicast_pkts=76815719u,in_octets=95890972327359u,in_oversize_pkts=0u,in_pkts=222159970919u,in_undersize_pkts=0u,in_unicast_pkts=222082988034u,last_clear=1679547185677412529u,link_flap_events=0u,name="\"1\"",out_1519_to_2047_octet_pkts=211382493634u,out_2048_to_4095_octet_pkts=0u,out_4096_to_9216_octet_pkts=0u,out_broadcast_pkts=2609579674u,out_errors=0u,out_multicast_pkts=332069076u,out_octets=885293268981054u,out_pkts=677379680498u,out_unicast_pkts=674438031748u 1739206587847000000
|
481
plugins/inputs/gnmi/testcases/issue_16476/responses.json
Normal file
481
plugins/inputs/gnmi/testcases/issue_16476/responses.json
Normal file
|
@ -0,0 +1,481 @@
|
|||
[
|
||||
{
|
||||
"update": {
|
||||
"timestamp": 1739206587847000000,
|
||||
"prefix": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "oc-if:interfaces"
|
||||
},
|
||||
{
|
||||
"name": "oc-if:interface"
|
||||
},
|
||||
{
|
||||
"name": "oc-if:state"
|
||||
},
|
||||
{
|
||||
"name": "oc-if:counters"
|
||||
}
|
||||
]
|
||||
},
|
||||
"update": [
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-1024-to-1518-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 15680405047
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-128-to-255-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 12809649942
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-1519-to-2047-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 35815850565
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-2048-to-4095-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-256-to-511-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 5257910993
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-4096-to-9216-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-512-to-1023-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 6139561818
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-64-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-65-to-127-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 146456592549
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-broadcast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 167166
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-crc-error-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-discards"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 236
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-discards-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 31492
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-dropped-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 31492
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-dropped-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 236
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-jabber-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-multicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 76815719
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 95890972327359
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-oversize-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 222159970919
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-undersize-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "in-unicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 222082988034
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "last-clear"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 1679547185677412529
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "link-flap-events"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "name"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"stringVal": "\"1\""
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-1519-to-2047-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 211382493634
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-2048-to-4095-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-4096-to-9216-octet-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-broadcast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 2609579674
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-errors"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-multicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 332069076
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-octets"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 885293268981054
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 677379680498
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": {
|
||||
"origin": "Ciena",
|
||||
"elem": [
|
||||
{
|
||||
"name": "out-unicast-pkts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"val": {
|
||||
"uintVal": 674438031748
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
10
plugins/inputs/gnmi/testcases/issue_16476/telegraf.conf
Normal file
10
plugins/inputs/gnmi/testcases/issue_16476/telegraf.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
enforce_first_namespace_as_origin = false
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "ifcounters"
|
||||
origin = "Ciena"
|
||||
path = "/oc-if:interfaces/oc-if:interface/oc-if:state/oc-if:counters"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "30s"
|
11
plugins/inputs/gnmi/testcases/issue_16515/expected.out
Normal file
11
plugins/inputs/gnmi/testcases/issue_16515/expected.out
Normal file
|
@ -0,0 +1,11 @@
|
|||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,source=127.0.0.1 state/parent_ae_name="" 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=0,source=127.0.0.1 egress/bytes=25084650213u,egress/packets=97812973u,egress/peak_buffer_occupancy_bytes=416u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=1,source=127.0.0.1 egress/bytes=0u,egress/packets=0u,egress/peak_buffer_occupancy_bytes=0u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=2,source=127.0.0.1 egress/bytes=10957969881u,egress/packets=105352268u,egress/peak_buffer_occupancy_bytes=208u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=3,source=127.0.0.1 egress/bytes=0u,egress/packets=0u,egress/peak_buffer_occupancy_bytes=0u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=4,source=127.0.0.1 egress/bytes=0u,egress/packets=0u,egress/peak_buffer_occupancy_bytes=0u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=5,source=127.0.0.1 egress/bytes=1020800306u,egress/packets=12027619u,egress/peak_buffer_occupancy_bytes=0u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=6,source=127.0.0.1 egress/bytes=1257881347u,egress/packets=4773346u,egress/peak_buffer_occupancy_bytes=624u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=7,source=127.0.0.1 egress/bytes=0u,egress/packets=0u,egress/peak_buffer_occupancy_bytes=0u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=8,source=127.0.0.1 egress/bytes=8898987190u,egress/packets=75415151u,egress/peak_buffer_occupancy_bytes=208u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
||||
qmon,name=xe-0/0/0:0,path=/junos/system/linecard/qmon-sw,queue_number=9,source=127.0.0.1 egress/bytes=16919364168u,egress/packets=157255632u,egress/peak_buffer_occupancy_bytes=208u,egress/peak_buffer_occupancy_percent=0u,egress/red_drop_bytes_color_0=0u,egress/red_drop_bytes_color_1=0u,egress/red_drop_bytes_color_2=0u,egress/red_drop_bytes_color_3=0u,egress/red_drop_packets_color_0=0u,egress/red_drop_packets_color_1=0u,egress/red_drop_packets_color_2=0u,egress/red_drop_packets_color_3=0u,egress/tail_drop_bytes=0u,egress/tail_drop_packets=0u 1739811071353000000
|
2853
plugins/inputs/gnmi/testcases/issue_16515/responses.json
Normal file
2853
plugins/inputs/gnmi/testcases/issue_16515/responses.json
Normal file
File diff suppressed because it is too large
Load diff
9
plugins/inputs/gnmi/testcases/issue_16515/telegraf.conf
Normal file
9
plugins/inputs/gnmi/testcases/issue_16515/telegraf.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "qmon"
|
||||
origin = "openconfig"
|
||||
path = "/junos/system/linecard/qmon-sw"
|
||||
subscription_mode = "sample"
|
||||
sample_interval = "60s"
|
|
@ -0,0 +1,5 @@
|
|||
interfaces_logical_status,descr/description=Loopback,index=0,name=lo0,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667238697959
|
||||
interfaces_logical_status,descr/description=Local:Mgmt,index=312,name=irb,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667241404442
|
||||
interfaces_logical_status,descr/description=Core:GRE:abc-def-dmn1-staging:{GRE_Tunnel},index=2,name=gr-0/0/0,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667243155079
|
||||
interfaces_logical_status,descr/description=Core:PacketFabric:abc-def-dmn1-staging:{PF-BC-DAL-SFO-12345},index=1410,name=xe-0/1/1,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667250570407
|
||||
interfaces_logical_status,descr/description=Core:PacketFabric:uvw-xyz-dmn1-staging:{PF-BC-CHI-SFO-67890},index=16386,name=xe-0/1/5,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="LOWER_LAYER_DOWN" 1674081667251795605
|
|
@ -0,0 +1,13 @@
|
|||
[
|
||||
{"update":{"timestamp":"1674081667224189253", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"lo0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"0"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Loopback"}}]}},
|
||||
{"update":{"timestamp":"1674081667226968153", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"irb"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"312"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Local:Mgmt"}}]}},
|
||||
{"update":{"timestamp":"1674081667228936729", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"gr-0/0/0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"3"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:GRE:abc-def-dmn1-staging:{GRE_Tunnel}"}}]}},
|
||||
{"update":{"timestamp":"1674081667236178737", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1410"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:PacketFabric:abc-def-dmn1-staging:{PF-BC-DAL-SFO-12345}"}}]}},
|
||||
{"update":{"timestamp":"1674081667236377628", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/5"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1412"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:PacketFabric:uvw-xyz-dmn1-staging:{PF-BC-CHI-SFO-67890}"}}]}},
|
||||
{"update":{"timestamp":"1674081667238697959", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"lo0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"0"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667241404442", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"irb"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"312"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667243155079", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"gr-0/0/0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"2"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667250570407", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1410"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667251795605", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/5"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"16386"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"LOWER_LAYER_DOWN"}}]}},
|
||||
{"syncResponse":true}
|
||||
]
|
|
@ -0,0 +1,15 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
redial = "10s"
|
||||
|
||||
[[inputs.gnmi.tag_subscription]]
|
||||
name = "descr"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/subinterfaces/subinterface/state/description"
|
||||
subscription_mode = "on_change"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces_logical_status"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/subinterfaces/subinterface/state/oper-status"
|
||||
subscription_mode = "on_change"
|
|
@ -0,0 +1,5 @@
|
|||
interfaces_logical_status,descr/description=Loopback,index=0,name=lo0,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667238697959
|
||||
interfaces_logical_status,descr/description=Local:Mgmt,index=312,name=irb,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667241404442
|
||||
interfaces_logical_status,descr/description=Core:GRE:abc-def-dmn1-staging:{GRE_Tunnel},index=2,name=gr-0/0/0,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667243155079
|
||||
interfaces_logical_status,descr/description=Core:PacketFabric:abc-def-dmn1-staging:{PF-BC-DAL-SFO-12345},index=1410,name=xe-0/1/1,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667250570407
|
||||
interfaces_logical_status,descr/description=Core:PacketFabric:uvw-xyz-dmn1-staging:{PF-BC-CHI-SFO-67890},index=16386,name=xe-0/1/5,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="LOWER_LAYER_DOWN" 1674081667251795605
|
|
@ -0,0 +1,13 @@
|
|||
[
|
||||
{"update":{"timestamp":"1674081667224189253", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"lo0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"0"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Loopback"}}]}},
|
||||
{"update":{"timestamp":"1674081667226968153", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"irb"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"312"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Local:Mgmt"}}]}},
|
||||
{"update":{"timestamp":"1674081667228936729", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"gr-0/0/0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"3"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:GRE:abc-def-dmn1-staging:{GRE_Tunnel}"}}]}},
|
||||
{"update":{"timestamp":"1674081667236178737", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1410"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:PacketFabric:abc-def-dmn1-staging:{PF-BC-DAL-SFO-12345}"}}]}},
|
||||
{"update":{"timestamp":"1674081667236377628", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/5"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1412"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:PacketFabric:uvw-xyz-dmn1-staging:{PF-BC-CHI-SFO-67890}"}}]}},
|
||||
{"update":{"timestamp":"1674081667238697959", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"lo0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"0"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667241404442", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"irb"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"312"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667243155079", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"gr-0/0/0"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"2"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667250570407", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1410"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667251795605", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/5"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"16386"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"LOWER_LAYER_DOWN"}}]}},
|
||||
{"syncResponse":true}
|
||||
]
|
|
@ -0,0 +1,16 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
redial = "10s"
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "descr"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/subinterfaces/subinterface/state/description"
|
||||
subscription_mode = "on_change"
|
||||
tag_only = true
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces_logical_status"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/subinterfaces/subinterface/state/oper-status"
|
||||
subscription_mode = "on_change"
|
|
@ -0,0 +1,3 @@
|
|||
interfaces_logical_status,descr/description=Core:PacketFabric:abc-def-dmn1-staging:{PF-BC-DAL-SFO-12345},index=1410,name=xe-0/1/1,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667250570407
|
||||
interfaces_logical_status,descr/description=Core:PacketFabric:uvw-xyz-dmn1-staging:{PF-BC-CHI-SFO-67890},index=1412,name=xe-0/1/1,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667250784367
|
||||
interfaces_logical_status,index=32767,name=xe-0/1/1,path=/interfaces/interface/subinterfaces/subinterface,source=127.0.0.1 oper_status="UP" 1674081667250994907
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
{"update":{"timestamp":"1674081667236178737", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1410"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:PacketFabric:abc-def-dmn1-staging:{PF-BC-DAL-SFO-12345}"}}]}},
|
||||
{"update":{"timestamp":"1674081667236377628", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1412"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":"Core:PacketFabric:uvw-xyz-dmn1-staging:{PF-BC-CHI-SFO-67890}"}}]}},
|
||||
{"update":{"timestamp":"1674081667236582084", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"32767"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"description"}]}, "val":{"stringVal":""}}]}},
|
||||
{"update":{"timestamp":"1674081667250570407", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1410"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667250784367", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"1412"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"update":{"timestamp":"1674081667250994907", "prefix":{"elem":[{"name":"interfaces"}, {"name":"interface", "key":{"name":"xe-0/1/1"}}, {"name":"subinterfaces"}, {"name":"subinterface", "key":{"index":"32767"}}]}, "update":[{"path":{"elem":[{"name":"state"}, {"name":"oper-status"}]}, "val":{"stringVal":"UP"}}]}},
|
||||
{"syncResponse":true}
|
||||
]
|
|
@ -0,0 +1,16 @@
|
|||
[[inputs.gnmi]]
|
||||
addresses = ["dummy"]
|
||||
redial = "10s"
|
||||
|
||||
[[inputs.gnmi.tag_subscription]]
|
||||
name = "descr"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/subinterfaces/subinterface/state/description"
|
||||
subscription_mode = "on_change"
|
||||
elements = ["interface", "subinterface"]
|
||||
|
||||
[[inputs.gnmi.subscription]]
|
||||
name = "interfaces_logical_status"
|
||||
origin = "openconfig"
|
||||
path = "/interfaces/interface/subinterfaces/subinterface/state/oper-status"
|
||||
subscription_mode = "on_change"
|
Loading…
Add table
Add a link
Reference in a new issue