#route

1 messages · Page 1 of 1 (latest)

north fractal
#

i'd like to get equvalent of "network route show". can i customize an existing template or need create a new one? i see it in REST API /network/ip/routes

mellow lion
#

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?

north fractal
#

will create new one and let you review. 😃

mellow lion
#

sweet thanks!

north fractal
#

👍

north fractal
#

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
mellow lion
#

thanks @north fractal! we'll review and get back to you

mellow lion