Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LLDP configuration management #534

Open
Nothing4You opened this issue Jan 31, 2024 · 0 comments
Open

Add LLDP configuration management #534

Nothing4You opened this issue Jan 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Nothing4You
Copy link
Contributor

Is your feature request related to a problem?

Currently, to configure LLDP system settings and LLDP profiles, you have to figure out the relevant XML snippets and set them with panos_config_element.

Describe the solution you'd like

LLDP system settings and LLDP profiles should be natively configurable via Ansible modules.

Describe alternatives you've considered

- name: Enable LLDP
  paloaltonetworks.panos.panos_config_element:
    provider: "{{ provider }}"

    edit: true
    xpath: /config/devices/entry[@name="localhost.localdomain"]/network/lldp
    element: |-
      <lldp>
        <enable>yes</enable>
      </lldp>

  diff: true


- name: Create LLDP profile default
  paloaltonetworks.panos.panos_config_element:
    provider: "{{ provider }}"

    edit: false
    xpath: /config/devices/entry[@name="localhost.localdomain"]/network/profiles/lldp-profile
    element: |-
      <entry name="default">
        <mode>transmit-receive</mode>
        <option-tlvs>
          <management-address>
            <enabled>no</enabled>
          </management-address>
          <port-description>yes</port-description>
          <system-name>yes</system-name>
          <system-description>yes</system-description>
        </option-tlvs>
      </entry>

  diff: true

Additional context

I believe this requires adjustments in pan-os-python to make this possible.

It was also previously partially mentioned in #409, though it seems to me that it makes more sense in a dedicated issue for this.

@Nothing4You Nothing4You added the enhancement New feature or request label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant