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

[Question] Update a conditions without specify all the childrens #119

Open
bmarco2024 opened this issue Mar 12, 2024 · 0 comments
Open

[Question] Update a conditions without specify all the childrens #119

bmarco2024 opened this issue Mar 12, 2024 · 0 comments

Comments

@bmarco2024
Copy link

Is your feature request related to a problem? Please describe.

Tacacs authentication policy doesn't support AD group.

A way to automate the process of creating user inside a tacacs auth policy using a Network Access - Update library condition

Updating a conditions with children without specify all the childrens.

Example, if you want to add a new children condition "user3" you need to specify all the children again "user1 and user2" (it doesn't scale well if we have hundred of users)

  • name: Create and update
    cisco.ise.network_access_conditions:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    state: present
    name: "mycondition"
    conditionType: "LibraryConditionOrBlock"
    isNegate: false
    children:
    • conditionType: "ConditionAttributes"
      attributeName: "UserName"
      attributeValue: "user1"
      dictionaryName: "Network Access"
      dictionaryValue: null
      isNegate: false
      link:
      href: "null"
      rel: "self"
      type: "application/json"
      operator: "equals"
    • conditionType: "ConditionAttributes"
      attributeName: "UserName"
      attributeValue: "user2"
      dictionaryName: "Network Access"
      dictionaryValue: null
      isNegate: false
      link:
      href: "null"
      rel: "self"
      type: "application/json"
      operator: "equals"

Describe the solution you'd like
Update the condition without specify all the children and overwriting each time the object.

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

No branches or pull requests

1 participant