-
Notifications
You must be signed in to change notification settings - Fork 162
panos_object IP lookup #66
Comments
Hi CJloHuK, |
Hi, It won't work since it will check the addressobject and will not proceed to address check - that is also should be fixed imho. What I want to achieve is to search per object name or per object IP (with or without CIDR notation, since object could be 1.1.1.1 or 1.1.1.1/32) In your example it should search and make correlation with object name and IP and give error if that doesn't match or ok if that match. address_type - ip-netmask is the default one + you have fqdn also (not documented, but present in the code) |
Hi fallenfuzz, In your example it should search and make correlation with object name and IP and give error if that doesn't match or ok if that match. But "Per Object IP(with or withour CIDR notation)", i am also looking for solution. |
arkaraung1993, Let me clarify. Lets say you have obj with IP 1.1.1.1 and name TEST You check it with the bellow play: What you get on the output: ok: [localhost] => { As you can see it doesn't correlate IP to Name |
I see, it doesn't correlate between IP and Object Name. As my testing result, Currently Ansible Module for Palo Alto is only support to search with "Object Name", not IP. In this way, we cannot check duplicate IP Address in Firewall before we add IP Address to Object. |
@ivanbojer Hi, any input on that one ? |
Any movement on doing object lookup by IPs? |
I agree that there should be a way to check for duplicates and track the objects by IP. |
Need this use-case as well. |
I hit the same issue when tried search by IP address only. Lets say I don't know what's the address object name and would like to find it by IP address as I would normally do in the web ui through search. IMHO proper search should support both options: IP to address_object name and vice versa. |
https://live.paloaltonetworks.com/t5/Automation-API-Discussions/panos-object/m-p/202243/highlight/false#M1600 |
I'm trying to seach for an IP address with panos_object
I'm using Role and ansible 2.4.3 with python 3.6.4, PA 8.0.8.
Tested with ansible 2.5.0rc1 without role - same
panos_object:
ip_address: '{{ ip_address }}'
username: '{{ username }}'
password: '{{ password }}'
address: '192.168.100.89/24'
operation: 'find'
when I run that I get: "msg": "No object type defined!" with failed.
Looks like something missing in the module, can't find referrence to value of the objectadress which should be IP.
The text was updated successfully, but these errors were encountered: