<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5082119#M589105</link>
    <description>&lt;P&gt;Thank you to all who replied.&lt;/P&gt;&lt;P&gt;I just now was able to get back to this project. Using the &lt;SPAN&gt;ansible.builtin.uri module worked.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 12:15:12 GMT</pubDate>
    <dc:creator>8uck5nort</dc:creator>
    <dc:date>2024-04-29T12:15:12Z</dc:date>
    <item>
      <title>AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5054583#M588525</link>
      <description>&lt;P&gt;I am very new to both Ansible and ISE APIs. I have read through the Cisco Dev site and utilized the playbooks to view and list the groups. However, I am getting an&amp;nbsp;"Unexpected failure during module execution: Unknown API version, known versions are 3.1.0, 3.1.1, 3.1.Patch.1 and 3.2_beta.",&lt;/P&gt;&lt;P&gt;The playbook is relatively simple so not sure why it is not working. Is this an error due to the fact our ISE PAN runs patch 7? I tried the ise_version set to 3.1.Patch1 but that did not work. Does the account I am using require authorization of some kind to create via API?&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;- hosts: My PAN server name&lt;BR /&gt;gather_facts: false&lt;/P&gt;&lt;P&gt;tasks:&lt;/P&gt;&lt;P&gt;- name: Create Site Group Under "Location#All Locations"&lt;BR /&gt;cisco.ise.network_device_group:&lt;BR /&gt;ise_hostname: "{{ise_hostname}}"&lt;BR /&gt;ise_username: "{{ise_username}}"&lt;BR /&gt;ise_password: "{{ise_password}}"&lt;BR /&gt;ise_verify: "{{ise_verify}}"&lt;BR /&gt;state: present&lt;BR /&gt;description: GroupDesc&lt;BR /&gt;name: "Location#All Locations#GroupDesc"&lt;BR /&gt;ndgtype: Location&lt;/P&gt;&lt;P&gt;I admit this may be a simple problem as I am still ramping up skills. But I have not had any luck finding an answer or a path to research.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 21:43:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5054583#M588525</guid>
      <dc:creator>8uck5nort</dc:creator>
      <dc:date>2024-04-01T21:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5054908#M588538</link>
      <description>&lt;P&gt;I believe this is the issue. It appears to be related to this&amp;nbsp;&lt;A href="https://github.com/CiscoISE/ansible-ise/issues/56" target="_blank"&gt;https://github.com/CiscoISE/ansible-ise/issues/56&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Has anyone found a work around?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 11:32:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5054908#M588538</guid>
      <dc:creator>8uck5nort</dc:creator>
      <dc:date>2024-04-02T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5055257#M588557</link>
      <description>&lt;P&gt;Those Ansible modules are only community supported and there is currently no development being done on that code.&lt;/P&gt;
&lt;P&gt;The only workaround would be using Ansible to call the APIs themselves similar to this example:&lt;BR /&gt;&lt;A href="https://opensource.com/article/21/9/ansible-rest-apis" target="_blank"&gt;https://opensource.com/article/21/9/ansible-rest-apis&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can find all of the relevant ISE API documentation to use in your Ansible code at &lt;A href="https://cs.co/ise-api" target="_blank"&gt;https://cs.co/ise-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 22:09:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5055257#M588557</guid>
      <dc:creator>Greg Gibbs</dc:creator>
      <dc:date>2024-04-02T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5055261#M588558</link>
      <description>&lt;P&gt;Correct - the problem is the breaking ISE change introduced by renaming the &lt;FONT face="courier new,courier"&gt;othername&lt;/FONT&gt; attribute to &lt;FONT face="courier new,courier"&gt;ndgtype&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;According to my &lt;A href="https://github.com/1homas/ISE_Ansible_Sandbox/blob/main/roles/ise_network_device_groups/tasks/main.yml" target="_self"&gt;ise_network_device_groups&lt;/A&gt; role:&lt;/P&gt;
&lt;PRE&gt;# &lt;span class="lia-unicode-emoji" title=":lady_beetle:"&gt;🐞&lt;/span&gt; ISE 3.1 Patch 4 and 3.2 `networkdevicegroup` create fails.&lt;BR /&gt;# &lt;span class="lia-unicode-emoji" title=":lady_beetle:"&gt;🐞&lt;/span&gt; It expects an `ndgtype` attribute instead of `othername`.&lt;BR /&gt;# &lt;span class="lia-unicode-emoji" title=":lady_beetle:"&gt;🐞&lt;/span&gt; This should be fixed in ISE 3.1 Patch 5 and ISE 3.2 Patch 1&lt;/PRE&gt;
&lt;P&gt;You best option is to upgrade to the latest patch and just use the &lt;FONT face="courier new,courier"&gt;othername&lt;/FONT&gt; attribute.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 22:31:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5055261#M588558</guid>
      <dc:creator>thomas</dc:creator>
      <dc:date>2024-04-02T22:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5055288#M588559</link>
      <description>&lt;P&gt;Here is an example of using Ansible to create the Network Device Group by calling the API directly using the&amp;nbsp;&lt;SPAN&gt;ansible.builtin.uri module.&lt;BR /&gt;I tested this against my ISE 3.1 patch 7 instance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;PRE&gt;---&lt;BR /&gt;- name: Create NDG using API calls &lt;BR /&gt;  hosts: localhost&lt;BR /&gt;  gather_facts: no&lt;BR /&gt;  vars_files:&lt;BR /&gt;  - variables.yaml&lt;BR /&gt;&lt;BR /&gt;  tasks:&lt;BR /&gt;  - name: Create NDG -- GroupDesc&lt;BR /&gt;    ansible.builtin.uri:&lt;BR /&gt;      url: https://{{ ise_hostname }}:9060/ers/config/networkdevicegroup&lt;BR /&gt;      return_content: true&lt;BR /&gt;      method: POST&lt;BR /&gt;      validate_certs: false&lt;BR /&gt;      headers:&lt;BR /&gt;        Content-Type: application/json&lt;BR /&gt;        Accept: application/json&lt;BR /&gt;        Authorization: Basic {{ ers_username_password | b64encode }}&lt;BR /&gt;      body_format: json&lt;BR /&gt;      status_code: 201&lt;BR /&gt;      body:&lt;BR /&gt;        NetworkDeviceGroup:&lt;BR /&gt;          name: Location#All Locations#GroupDesc&lt;BR /&gt;          description: GroupDesc&lt;BR /&gt;          othername: Location&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 00:26:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5055288#M588559</guid>
      <dc:creator>Greg Gibbs</dc:creator>
      <dc:date>2024-04-03T00:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5056629#M588580</link>
      <description>&lt;P&gt;Thank You will give this a try.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 18:01:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5056629#M588580</guid>
      <dc:creator>8uck5nort</dc:creator>
      <dc:date>2024-04-04T18:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5056636#M588581</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;The ISE instance is on patch 3.1 patch 7 and I have tried othername as suggested, but the play still fails, it is saying othername is not a valid parameter.&lt;/P&gt;&lt;P&gt;The full traceback is:&lt;BR /&gt;NoneType: None&lt;BR /&gt;fatal: [localhost]: FAILED! =&amp;gt; {&lt;BR /&gt;"changed": false,&lt;BR /&gt;"msg": ["othername. Supported parameters include: description, id, ise_debug, ise_hostname, ise_password, ise_single_request_timeout, ise_username, ise_uses_api_gateway, ise_uses_csrf_token, ise_verify, ise_version, ise_wait_on_rate_limit, name, ndgtype, state."]}&lt;BR /&gt;When I try using ndgtype it fails, but then tells me that othername is required.&lt;/P&gt;&lt;P&gt;"msg": "An error occurred when executing operation. The error was: [400] - Validation Error - Mandatory fields missing: [othername]&lt;/P&gt;&lt;P&gt;Now I am definitely no expert and it is very possible I could have something else incorrectly configured or missed a pre-req. I am continuing to develop, test and troubleshoot ISE playbooks.&lt;/P&gt;&lt;P&gt;I can manually create the Device Group in ISE and create a network group device with all the appropriate settings with out issue.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 18:18:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5056636#M588581</guid>
      <dc:creator>8uck5nort</dc:creator>
      <dc:date>2024-04-04T18:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5056738#M588582</link>
      <description>&lt;P&gt;Correct. I get the same behaviour when using the Ansible ISE module. This is due to the breaking changes in the API that where later reversed. The Ansible module developers updated the module to resolve the initial breaking change, but there was no more development done on the module after the API change was reversed.&lt;/P&gt;
&lt;P&gt;You might be able to use an older version of the API (check the changelog and closed issues) before this change was made in the module, but there could be other issues in that version.&lt;BR /&gt;I would suggest either using the ansible.builtin.uri module option I provided an example for or look into using &lt;A href="https://github.com/grg1bbs/DevNet_Terraform_ISE_Policy" target="_blank" rel="noopener"&gt;Terraform as per this example&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 21:05:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5056738#M588582</guid>
      <dc:creator>Greg Gibbs</dc:creator>
      <dc:date>2024-04-04T21:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: AAP2.4 and ISE3.1_7. Create Network Group Playbook Not Working</title>
      <link>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5082119#M589105</link>
      <description>&lt;P&gt;Thank you to all who replied.&lt;/P&gt;&lt;P&gt;I just now was able to get back to this project. Using the &lt;SPAN&gt;ansible.builtin.uri module worked.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 12:15:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/aap2-4-and-ise3-1-7-create-network-group-playbook-not-working/m-p/5082119#M589105</guid>
      <dc:creator>8uck5nort</dc:creator>
      <dc:date>2024-04-29T12:15:12Z</dc:date>
    </item>
  </channel>
</rss>

