#route
1 messages · Page 1 of 1 (latest)
checking
hi @north fractal network route show corresponds to the ZAPI net-routes-get-iter Doesn't look like Harvest has a template for that ZAPI. Creating a new template with /network/ip/routes looks like a good choice. Happy to add that to Harvest - can you create an issue to track or contribute yours if you have one?
will create new one and let you review. 😃
sweet thanks!
👍
here is the template
custom_netRoute.yaml
name: NetRoute
query: api/network/ip/routes
object: net_route
counters:
- ^^uuid => uuid
- ^svm.name => svm
- ^gateway => gateway
- ^destination.netmask => netmask_length
- ^destination.address => destination
export_options:
instance_keys:
- uuid
instance_labels:
- svm
- gateway
- netmask_length
- destination
sample output
net_route_labels{svm="t14_fls1_ash0_websys",gateway="192.168.168.40",netmask_length="0",destination="0.0.0.0",datacenter="ASH",cluster="flc1-sys-ash0-storage",uuid="07210cd8-73cb-11ea-ac74-00a098dee14e"} 1.0
net_route_labels{svm="t78_fls1_ptwprod1_syseng",gateway="10.66.67.1",netmask_length="0",destination="0.0.0.0",datacenter="ASH",cluster="flc1-sys-ash0-storage",uuid="072478ff-73cb-11ea-ac74-00a098dee14e"} 1.0
thanks @north fractal! we'll review and get back to you
created https://github.com/NetApp/harvest/issues/1795 to track. Thanks again for the contribution!