panos_interface - configure data-port network interface for DHCP
New in version 2.3.
Synopsis
- Configure data-port (DP) network interface for DHCP. By default DP interfaces are static.
Requirements (on host that executes module)
- pan-python can be obtained from PyPi https://pypi.python.org/pypi/pan-python
Options
parameter | required | default | choices | comments |
---|---|---|---|---|
commit | no | True | Commit if changed | |
create_default_route | no | false | Whether or not to add default route with router learned via DHCP. | |
if_name | yes | Name of the interface to configure. | ||
ip_address | yes | IP address (or hostname) of PAN-OS device being configured. | ||
password | yes | Password credentials to use for auth. | ||
username | no | admin | Username credentials to use for auth. | |
zone_name | yes | Name of the zone for the interface. If the zone does not exist it is created but if the zone exists and it is not of the layer3 type the operation will fail. |
Examples
- name: enable DHCP client on ethernet1/1 in zone public interface: password: "admin" ip_address: "192.168.1.1" if_name: "ethernet1/1" zone_name: "public" create_default_route: "yes"
Notes
Note
- Checkmode is not supported.
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.4/panos_interface_module.html