Git Product home page Git Product logo

Comments (2)

pkodzis avatar pkodzis commented on August 29, 2024 1

My bad.

It gives unsorted on old unsupported Ansible:

test monitor:

      - monitorname: test1
        interval: 12345
        state: present
        type: TCP
        retries: 100
        fake_option: test 

result:

"msg": "Unsupported parameters for (netscaler.adc.lbmonitor) module: fake_option. Supported parameters include: metricthreshold, metric, alertretries, sipmethod, snmpversion, acctapplicationid, storefrontcheckbackendservices, nitro_protocol, scriptargs, sipuri, originhost, binddn, filename, sqlquery, application, rtsprequest, group, reverse, monitorname, netprofile, vendorspecificauthapplicationids, domain, resptimeoutthresh, vendorspecificvendorid, snmpcommunity, servicename, scriptname, secure, iptunnel, authapplicationid, respcode, retries, database, send, downtime, state, originrealm, sitepath, api_path, units2, hostipaddress, lasversion, snmpthreshold, transparent, grpcservicename, validatecred, radmsisdn, resptimeout, units1, metrictable, action, radapn, lbmonitor_sslcertkey_binding, sslprofile, maxforwards, tos, grpcstatuscode, customheaders, radkey, nitro_auth_token, httprequest, dispatcherip, radaccountsession, mqttversion, metricweight, dispatcherport, storename, trofscode, radnasip, type, lrtm, mssqlprotocolversion, secondarypassword, query, grpchealthcheck, units3, recv, vendorid, firmwarerevision, logonpointname, trofsstring, basedn, storefrontacctservice, successretries, storedb, evalrule, tosid, nsip, validate_certs, attribute, nitro_pass, interval, kcdaccount, vendorspecificacctapplicationids, inbandsecurityid, servicegroupname, nitro_user, sipreguri, units4, destip, mqttclientidentifier, oraclesid, failureretries, radframedip, username, radaccounttype, lbmonitor_metric_binding, productname, secureargs, ipaddress, supportedvendorids, deviation, filter, destport, save_config, querytype, snmpoid, password, radnasid, hostname."

$ python3 --version; ansible --version; ansible-galaxy collection list netscaler.adc
Python 3.9.5
ansible [core 2.12.10]
config file = None
configured module search path = ['/home/pkodzis/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.9/dist-packages/ansible
ansible collection location = /home/pkodzis/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/local/bin/ansible
python version = 3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0]
jinja version = 2.11.2
libyaml = True

/home/pkodzis/.ansible/collections/ansible_collections

Collection Version


netscaler.adc 2.1.0

BUT works as expcted on newer Ansible:

"msg": "Unsupported parameters for (netscaler.adc.lbmonitor) module: fake_option. Supported parameters include: acctapplicationid, action, alertretries, api_path, application, attribute, authapplicationid, basedn, binddn, customheaders, database, destip, destport, deviation, dispatcherip, dispatcherport, domain, downtime, evalrule, failureretries, filename, filter, firmwarerevision, group, grpchealthcheck, grpcservicename, grpcstatuscode, hostipaddress, hostname, httprequest, inbandsecurityid, interval, ipaddress, iptunnel, kcdaccount, lasversion, lbmonitor_metric_binding, lbmonitor_sslcertkey_binding, logonpointname, lrtm, maxforwards, metric, metrictable, metricthreshold, metricweight, monitorname, mqttclientidentifier, mqttversion, mssqlprotocolversion, netprofile, nitro_auth_token, nitro_pass, nitro_protocol, nitro_user, nsip, oraclesid, originhost, originrealm, password, productname, query, querytype, radaccountsession, radaccounttype, radapn, radframedip, radkey, radmsisdn, radnasid, radnasip, recv, respcode, resptimeout, resptimeoutthresh, retries, reverse, rtsprequest, save_config, scriptargs, scriptname, secondarypassword, secure, secureargs, send, servicegroupname, servicename, sipmethod, sipreguri, sipuri, sitepath, snmpcommunity, snmpoid, snmpthreshold, snmpversion, sqlquery, sslprofile, state, storedb, storefrontacctservice, storefrontcheckbackendservices, storename, successretries, supportedvendorids, tos, tosid, transparent, trofscode, trofsstring, type, units1, units2, units3, units4, username, validate_certs, validatecred, vendorid, vendorspecificacctapplicationids, vendorspecificauthapplicationids, vendorspecificvendorid."}

$ python3 --version; ansible --version; ansible-galaxy collection list netscaler.adc
Python 3.9.5
ansible [core 2.15.6]
config file = None
configured module search path = ['/home/pkodzis/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/pkodzis/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/pkodzis/.ansible/collections:/usr/share/ansible/collections
executable location = /home/pkodzis/.local/bin/ansible
python version = 3.9.5 (default, Nov 18 2021, 16:00:48) [GCC 10.3.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True

/home/pkodzis/.ansible/collections/ansible_collections

Collection Version


netscaler.adc 2.1.0

All OK. Thank you so much for checking and I'm sorry for wasting your time!

from ansible-collection-netscaleradc.

sumanth-lingappa avatar sumanth-lingappa commented on August 29, 2024

@pkodzis, the options are sorted by default.
Can you please confirm if you are not getting the sorted order?

❯ ansible-playbook examples/lbmonitor.yaml --tags test
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [Sample Playbook] **********************************************************************************************************************************************************************************************************************************************

TASK [Sample Task | lbmonitor | 3] **********************************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (netscaler.adc.lbmonitor) module: retry. Supported parameters include: acctapplicationid, action, alertretries, api_path, application, attribute, authapplicationid, basedn, binddn, customheaders, database, destip, destport, deviation, dispatcherip, dispatcherport, domain, downtime, evalrule, failureretries, filename, filter, firmwarerevision, group, grpchealthcheck, grpcservicename, grpcstatuscode, hostipaddress, hostname, httprequest, inbandsecurityid, interval, ipaddress, iptunnel, kcdaccount, lasversion, lbmonitor_metric_binding, lbmonitor_sslcertkey_binding, logonpointname, lrtm, maxforwards, metric, metrictable, metricthreshold, metricweight, monitorname, mqttclientidentifier, mqttversion, mssqlprotocolversion, netprofile, nitro_auth_token, nitro_pass, nitro_protocol, nitro_user, nsip, oraclesid, originhost, originrealm, password, productname, query, querytype, radaccountsession, radaccounttype, radapn, radframedip, radkey, radmsisdn, radnasid, radnasip, recv, respcode, resptimeout, resptimeoutthresh, retries, reverse, rtsprequest, save_config, scriptargs, scriptname, secondarypassword, secure, secureargs, send, servicegroupname, servicename, sipmethod, sipreguri, sipuri, sitepath, snmpcommunity, snmpoid, snmpthreshold, snmpversion, sqlquery, sslprofile, state, storedb, storefrontacctservice, storefrontcheckbackendservices, storename, successretries, supportedvendorids, tos, tosid, transparent, trofscode, trofsstring, type, units1, units2, units3, units4, username, validate_certs, validatecred, vendorid, vendorspecificacctapplicationids, vendorspecificauthapplicationids, vendorspecificvendorid."}

PLAY RECAP **********************************************************************************************************************************************************************************************************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

from ansible-collection-netscaleradc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.