<commit_before>---
- debug: msg="START junos_lldp netconf/basic.yaml"

- name: setup - Disable lldp and remove it's configuration
  junos_lldp:
    state: absent
    provider: "{{ netconf }}"

- name: Enable lldp
  junos_lldp:
    state: present
    provider: "{{ netconf }}"
  register: result

- assert:
    that:
      - "result.changed == true"

- name: Enable lldp (idempotent)
  junos_lldp:
    state: present
    provider: "{{ netconf }}"
  register: result

- assert:
    that:
      - "result.changed == false"

- name: configure lldp parameters and enable lldp
  junos_lldp:
    interval: 10
    hold_multiplier: 5
    transmit_delay: 30
    state: present
    provider: "{{ netconf }}"
  register: result

- assert:
    that:
      - "result.changed == true"
      - result.diff.prepared | search("\+ *advertisement-interval 10")
      - result.diff.prepared | search("\+ *transmit-delay 30")
      - result.diff.prepared | search("\+ *hold-multiplier 5")

- name: configure lldp parameters and enable lldp(idempotent)
  junos_lldp:
    interval: 10
    hold_multiplier: 5
    transmit_delay: 30
    state: present
    provider: "{{ netconf }}"
  register: result<commit_msg>Change the transmit delay on junos_lldp test (#27750)<commit_after>---
- debug: msg="START junos_lldp netconf/basic.yaml"

- name: setup - Disable lldp and remove it's configuration
  junos_lldp:
    state: absent
    provider: "{{ netconf }}"

- name: Enable lldp
  junos_lldp:
    state: present
    provider: "{{ netconf }}"
  register: result

- assert:
    that:
      - "result.changed == true"

- name: Enable lldp (idempotent)
  junos_lldp:
    state: present
    provider: "{{ netconf }}"
  register: result

- assert:
    that:
      - "result.changed == false"

- name: configure lldp parameters and enable lldp
  junos_lldp:
    interval: 10
    hold_multiplier: 5
    transmit_delay: 2
    state: present
    provider: "{{ netconf }}"
  register: result

- assert:
    that:
      - "result.changed == true"
      - result.diff.prepared | search("\+ *advertisement-interval 10")
      - result.diff.prepared | search("\+ *transmit-delay 30")
      - result.diff.prepared | search("\+ *hold-multiplier 5")

- name: configure lldp parameters and enable lldp(idempotent)
  junos_lldp:
    interval: 10
    hold_multiplier: 5
    transmit_delay: 30
    state: present
    provider: "{{ netconf }}"
  register: result
{'fraction_non_alphanumeric': 0.12318540024885939, 'fraction_numerical': 0.014102032351721278, 'mean_word_length': 2.8653846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4822078', 'n_tokens_mistral': 861, 'n_tokens_neox': 816, 'n_words': 212}