brocade / ansible

56 stars 33 forks source link

brocade_facts Not Getting Most Recent Facts #153

Closed Javedkhansiddiqui closed 5 months ago

Javedkhansiddiqui commented 5 months ago

1) AWX TOWER CONFIGURATION

Identity added: /runner/artifacts/3049029/ssh_key_data (/runner/artifacts/3049029/ssh_key_data)
ansible-playbook [core 2.13.8]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.9/site-packages/ansible
  ansible collection location = /runner/requirements_collections:/home/runner/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible-playbook
  python version = 3.9.16 (main, May 31 2023, 12:21:58) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)]
  jinja version = 3.0.3
  libyaml = True







2) MY CODE

image





3) MY ALIAS FETCH RESULTS BY BROCADE_FACTS

ok: [csc2cxn00002917.cloud.kp.org] => {
    "GET_url": "https://********/rest/running/brocade-zone/effective-configuration?vf-id=128",
    "POST_url": "https://********/rest/logout",
    "ansible_facts": {
        "brocade_zoning": {
            "defined-configuration": {
                "alias": [
                    {
                        "alias_name": "PMAX_3319_1D04",
                        "member_entry": {
                            "alias_entry_name": "50:00:09:73:b0:33:dc:04"
                        }
                    },
                    {
                        "alias_name": "PMAX_3319_1D06",
                        "member_entry": {
                            "alias_entry_name": "50:00:09:73:b0:33:dc:06"
                        }
                    },
                    {
                        "alias_name": "SampleAlias4",
                        "member_entry": {
                            "alias_entry_name": "10:23:45:67:76:54:32:12"
                        }
                    },
                    {
                        "alias_name": "ansibleHost1",
                        "member_entry": {
                            "alias_entry_name": [
                                "aa:11:11:11:11:11:11:11",
                                "aa:22:22:22:22:22:22:22"
                            ]
                        }
                    },
                    {
                        "alias_name": "ansibleHost8",
                        "member_entry": {
                            "alias_entry_name": [
                                "aa:11:11:11:11:11:11:11",
                                "aa:22:22:22:22:22:22:22"
                            ]
                        }
                    },
                    {
                        "alias_name": "server_host0",
                        "member_entry": {
                            "alias_entry_name": "10:00:94:40:c9:d0:1d:a2"
                        }
                    },
                    {
                        "alias_name": "server_host2",
                        "member_entry": {
                            "alias_entry_name": "10:00:94:40:c9:d0:1d:a3"
                        }
                    },
                    {
                        "alias_name": "server_host3",
                        "member_entry": {
                            "alias_entry_name": "10:00:94:40:c9:d0:1d:e1"
                        }
                    },
                    {
                        "alias_name": "server_host4",
                        "member_entry": {
                            "alias_entry_name": "10:00:94:40:c9:d0:1d:e2"
                        }
                    },

                ],







4) MANUAL CHECK BY CONNECTING TO SWITCH NOT GETTING THOSE ALIAS

server_host0 server_host2 server_host3 server_host4

image

prasad-valmeti-broadcom commented 5 months ago

This issue is same as #154. So closing this as a duplicate of the other issue. Please let us know if you have any issues.