paloaltonetworks / paloaltonetworks.panos / 2.19.1 / module / panos_l2_subinterface Manage layer2 subinterface | "added in version" 1.0.0 of paloaltonetworks.panos" Authors: Garfield Lee Freeman (@shinmog)paloaltonetworks.panos.panos_l2_subinterface (2.19.1) — module
Install with ansible-galaxy collection install paloaltonetworks.panos:==2.19.1
collections: - name: paloaltonetworks.panos version: 2.19.1
Manage a layer2 subinterface.
# Create ethernet1/1.5 - name: ethernet1/1.5 in zone sales paloaltonetworks.panos.panos_l2_subinterface: provider: '{{ provider }}' name: "ethernet1/1.5" tag: 5 zone_name: "sales" vlan_name: "myVlan"
tag: description: - Tag (vlan id) for the interface type: int name: description: - Name of the interface to configure. type: str port: default: 443 description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The port number to connect to the PAN-OS device on. type: int vsys: description: - The vsys this object should be imported into. Objects that are imported include interfaces, virtual routers, virtual wires, and VLANs. Interfaces are typically imported into vsys1 if no vsys is specified. type: str state: choices: - present - absent - replaced - merged - deleted - gathered default: present description: - The state. type: str api_key: description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The API key to use instead of generating it using I(username) / I(password). type: str comment: description: - Interface comment. type: str password: description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The password to use for authentication. This is ignored if I(api_key) is specified. type: str provider: description: - A dict object containing connection details. suboptions: api_key: description: - The API key to use instead of generating it using I(username) / I(password). type: str ip_address: description: - The IP address or hostname of the PAN-OS device being configured. type: str password: description: - The password to use for authentication. This is ignored if I(api_key) is specified. type: str port: default: 443 description: - The port number to connect to the PAN-OS device on. type: int serial_number: description: - The serial number of a firewall to use for targeted commands. If I(ip_address) is not a Panorama PAN-OS device, then this param is ignored. type: str username: default: admin description: - The username to use for authentication. This is ignored if I(api_key) is specified. type: str type: dict version_added: 1.0.0 version_added_collection: paloaltonetworks.panos template: description: - (Panorama only) The template this operation should target. This param is required if the PAN-OS device is Panorama. type: str username: default: admin description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The username to use for authentication. This is ignored if I(api_key) is specified. type: str vlan_name: description: - The VLAN to put this interface in. - If the VLAN does not exist it is created. type: str zone_name: description: - Name of the zone for the interface. - If the zone does not exist it is created. type: str ip_address: description: - B(Deprecated) - Use I(provider) to specify PAN-OS connectivity instead. - HORIZONTALLINE - The IP address or hostname of the PAN-OS device being configured. type: str lldp_enabled: description: - Enable LLDP type: bool lldp_profile: description: - Reference to an LLDP profile type: str gathered_filter: description: - When I(state=gathered). - An advanced filtering option to filter results returned from PAN-OS. - Refer to the guide discussing I(gathered_filter) for more information. type: str netflow_profile: description: - Reference to a netflow profile. type: str