Deprecated

Removed in 2.12

i

Reason:Consolidating code base. | Alternative:Use U(https://galaxy.ansible.com/PaloAltoNetworks/paloaltonetworks) instead.

community.general.panos_interface (0.1.1) — module

configure data-port network interface for DHCP

Authors: Luigi Mori (@jtschichold), Ivan Bojer (@ivanbojer)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Configure data-port (DP) network interface for DHCP. By default DP interfaces are static.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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"

Inputs

    
commit:
    default: true
    description:
    - Commit if changed
    type: bool

if_name:
    description:
    - Name of the interface to configure.
    required: true

password:
    description:
    - Password for authentication.
    required: true
    type: str

username:
    default: admin
    description:
    - Username for authentication.
    type: str

zone_name:
    description: '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.

      '
    required: true

ip_address:
    description:
    - IP address (or hostname) of PAN-OS device.
    required: true
    type: str

create_default_route:
    default: 'false'
    description:
    - Whether or not to add default route with router learned via DHCP.
    type: bool