Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: unset netprofile gap? 2.3.0 #346

Closed
pkodzis opened this issue Jan 15, 2024 · 1 comment
Closed

[Bug]: unset netprofile gap? 2.3.0 #346

pkodzis opened this issue Jan 15, 2024 · 1 comment
Assignees
Labels

Comments

@pkodzis
Copy link

pkodzis commented Jan 15, 2024

Summary

Unable to "unset" netprofile from service/servicegroup.
It seems this CLI feature is not supported by netscaler.adc and as a result I can't do this via Ansible:

CLI exmaple:

unset serviceGroup test-sg1 -netProfile
Done

Issue Type

Bug Report

Component Name

service/servicegroup and probably others that need unset

Python Version

$ 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.3.0

Ansible Version

$ 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.3.0

Ansible Configuration

$ ansible-config dump --only-changed

netscaler.adc Collection Version

$ 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.3.0

Target NetScaler Version

> show ns version

Equivalent NetScaler CLI Command

Steps to Reproduce

n/a, i dont know how to even try unset via ansible.

Expected Results

CLI exmaple:

unset serviceGroup test-sg1 -netProfile
Done

Actual Results

Additioinal Notes

No response

@pkodzis pkodzis added the bug label Jan 15, 2024
sumanth-lingappa added a commit that referenced this issue Jan 16, 2024
Signed-off-by: Sumanth Lingappa <sumanth.lingappa@cloud.com>
@sumanth-lingappa
Copy link
Collaborator

This is fixed in version 2.4.0

Example playbook to unset. Please note the double quotes around true. These are mandatory to tell ansible it is a string literal. Otherwise, without double-quotes, true will be treated as boolean.

---
- name: Issue 346
  hosts: localhost
  gather_facts: false
  tasks:
    - name: UNSET netprofile from servicegroup
      delegate_to: localhost
      netscaler.adc.servicegroup:
        state: unset # <<<< New state `unset` is introduced
        servicegroupname: test-sg1
        netprofile: "true" # double-quotes are mandatory. Otherwise it will be treated as boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants