paloaltonetworks.panos.panos_bgp_policy_filter (2.19.1) — module

Manage a BGP Policy Import/Export Rule

| "added in version" 1.0.0 of paloaltonetworks.panos"

Authors: Joshua Colson (@freakinhippie), Garfield Lee Freeman (@shinmog)

Install collection

Install with ansible-galaxy collection install paloaltonetworks.panos:==2.19.1


Add to requirements.yml

  collections:
    - name: paloaltonetworks.panos
      version: 2.19.1

Description

Use BGP to publish and consume routes from disparate networks.


Requirements

Inputs

    
name:
    description:
    - Name of filter.
    required: true
    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

state:
    choices:
    - present
    - absent
    - return-object
    default: present
    description:
    - Add or remove BGP Policy Filter.
    - I(state=return-object) is deprecated and will be removed in 2.12.
    type: str

commit:
    description:
    - B(Deprecated)
    - Please use M(paloaltonetworks.panos.panos_commit_firewall), M(paloaltonetworks.panos.panos_commit_panorama),
      M(paloaltonetworks.panos.panos_commit_push) instead.
    - HORIZONTALLINE
    - Commit changes after creating object.  If I(ip_address) is a Panorama device, and
      I(device_group) or I(template) are also set, perform a commit to Panorama and a
      commit-all to the device group/template.
    type: bool

enable:
    default: true
    description:
    - Enable filter.
    type: bool

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

vr_name:
    default: default
    description:
    - Name of the virtual router; it must already exist and have BGP configured.
    - See M(paloaltonetworks.panos.panos_virtual_router).
    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. Mutually exclusive with
      I(template_stack).
    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

match_afi:
    choices:
    - ip
    - ipv6
    description:
    - Address Family Identifier.
    type: str

match_med:
    description:
    - Multi-Exit Discriminator.
    type: int

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

match_safi:
    choices:
    - ip
    - ipv6
    description:
    - Subsequent Address Family Identifier.
    type: str

filter_type:
    choices:
    - non-exist
    - advertise
    - suppress
    description:
    - The type of filter.
    required: true
    type: str

policy_name:
    description:
    - The name of the policy object.
    type: str

policy_type:
    choices:
    - conditional-advertisement
    - aggregate
    description:
    - The type of policy object.
    required: true
    type: str

match_nexthop:
    description:
    - Next-hop attributes.
    elements: str
    type: list

address_prefix:
    description:
    - List of dicts with "name"/"exact" keys.
    - Using the dict form for address prefixes should only be used with I(policy_type=aggregate).
    elements: dict
    type: list

template_stack:
    description:
    - (Panorama only) The template stack this operation should target. Mutually exclusive
      with I(template).
    type: str

match_from_peer:
    description:
    - Filter by peer that sent this route.
    elements: str
    type: list

match_route_table:
    choices:
    - unicast
    - multicast
    - both
    default: unicast
    description:
    - Route table to match rule.
    type: str

match_as_path_regex:
    description:
    - AS-path regular expression.
    type: str

match_community_regex:
    description:
    - Community AS-path regular expression.
    type: str

match_extended_community_regex:
    description:
    - Extended Community AS-path regular expression.
    type: str

Outputs

paloaltonetworks.panos.panos_obj:
  description: a serialized policy filter is returned when state == 'return-object'
  returned: success
  type: str