diff --git a/cmd/collectors/rest/plugins/netroute/netroute.go b/cmd/collectors/rest/plugins/netroute/netroute.go index e5380b237..cbb9e8025 100644 --- a/cmd/collectors/rest/plugins/netroute/netroute.go +++ b/cmd/collectors/rest/plugins/netroute/netroute.go @@ -73,8 +73,8 @@ func (n *NetRoute) Run(dataMap map[string]*matrix.Matrix) ([]*matrix.Matrix, err interfaces := instance.GetLabel("interfaces") interfacesList := gjson.Result{Type: gjson.JSON, Raw: interfaces} - names := interfacesList.Get("..#.name").Array() - address := interfacesList.Get("..#.ip.address").Array() + names := interfacesList.Get("name").Array() + address := interfacesList.Get("address").Array() if names != nil && address != nil { if len(names) == len(address) { diff --git a/conf/rest/9.12.0/netroute.yaml b/conf/rest/9.12.0/netroute.yaml index 8bb02d7bd..1bca860c9 100644 --- a/conf/rest/9.12.0/netroute.yaml +++ b/conf/rest/9.12.0/netroute.yaml @@ -3,15 +3,15 @@ query: api/network/ip/routes object: net_route counters: - - ^^uuid => uuid - - ^destination.address => destination - - ^destination.family => family - - ^destination.netmask => netmask_length - - ^gateway => gateway - - ^interfaces => interfaces # Added in Ontap 9.9 - - ^ipspace.name => ipspace - - ^scope => scope - - ^svm.name => svm + - ^^uuid => uuid + - ^destination.address => destination + - ^destination.family => family + - ^destination.netmask => netmask_length + - ^gateway => gateway + - ^ipspace.name => ipspace + - ^scope => scope + - ^svm.name => svm + - ^{interfaces.#.name,interfaces.#.ip.address} => interfaces # Added in Ontap 9.9 - hidden_fields: - interfaces