#Options in na_ontap_net_port do not support REST

1 messages · Page 1 of 1 (latest)

acoustic crane
#

So, it appears that the "autonegotiate_admin" and "flowcontrol_admin" options of the na_ontap_net_ports module are not supported in REST. Is there a different module that we should be using to modify these options using REST, or will they be available as REST in a future update of the module?

We are currently still on OnTap 9.8, so it will work as it is currently, but I'd rather use REST as much as possible now so that I don't have to go back and fix things later.

pliant stream
#

autonegotiate_admin and flowcontrol_admin options dont have REST equivalent as of 9.12.1
https://docs.netapp.com/us-en/ontap-restmap-9121/net.html#net-port-modify-iter

we have na_ontap_rest_cli module, this module calls private REST API endpoint we set in the command option that can be used to access any CLI command.

to modify net port

- name: Modify net port na_ontap_rest_cli: <<: *login command: 'network/port' verb: 'PATCH' params: {"node": "ontap2-01", "port": "e0a"} body: {"flowcontrol_admin": "none"}

how to form private REST end points - https://library.netapp.com/ecmdocs/ECMLP2884821/html/index.html, topic to search for - Using the private CLI passthrough with the ONTAP REST API

ignore /api/private/cli/ part of the api when using rest_cli module.

pliant stream
distant ice
#

@pliant stream - we are working to configure Ansible Automation Platform to run daily conformance checks against our NetApp storage clusters (all currently running ONTAP 9.15.1Px) and would significantly help if REST support in netapp.ontap.na_ontap_net_port module to run the following: autonegotiate_admin, duplex_admin , flowcontrol_admin, mtu, speed_admin. Can this be addressed in the next ONTAPI to REST gap?
https://www.netapp.com/developer/

upbeat sky
#

The use of na_ontap_rest_cli module can only be a very temporary workound because it presents a ton of challenges around idempotency. We'd require the use of and prefer to use the na_ontap_net_portmodule. Please let us know how to formally submit a request to have those parameters added as supported params in REST. If we need to work through our account team, please let us know.

cursive smelt