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

Encapsulated Remote Mirroring is broken #2106

Open
perkons opened this issue Jul 9, 2024 · 0 comments
Open

Encapsulated Remote Mirroring is broken #2106

perkons opened this issue Jul 9, 2024 · 0 comments

Comments

@perkons
Copy link

perkons commented Jul 9, 2024

SUMMARY

Incorrect configuration is applied when adding "Encapsulated Remote Mirroring" Session Type.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_vspan_session

ANSIBLE VERSION
ansible [core 2.16.7]
  config file = /home/user/.ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/user/.ansible-python-venv/lib/python3.11/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/user/.ansible-python-venv/bin/ansible
  python version = 3.11.9 (main, Apr  2 2024, 08:25:04) [GCC 13.2.0] (/home/user/.ansible-python-venv/bin/python)
  jinja version = 3.1.4
  libyaml = True
COLLECTION VERSION

# /home/user/.ansible-python-venv/lib/python3.11/site-packages/ansible_collections
Collection       Version
---------------- -------
community.vmware 4.4.0  
CONFIGURATION
CONFIG_FILE() = /home/user/.ansible.cfg
DEFAULT_HASH_BEHAVIOUR(/home/user/.ansible.cfg) = merge
DEFAULT_HOST_LIST(/home/user/.ansible.cfg) = ['/home/user/git/ansible/library/netbox/netbox.py']
DEFAULT_VAULT_PASSWORD_FILE(/home/user/.ansible.cfg) = /run/user/1000/secrets/ansible-vault
EDITOR(env: EDITOR) = vim
HOST_KEY_CHECKING(/home/user/.ansible.cfg) = True
PAGER(env: PAGER) = less
RETRY_FILES_ENABLED(/home/user/.ansible.cfg) = False
OS / ENVIRONMENT

vCenter Details
Version: 8.0.2
Build: 22617221
VMware ESXi, 7.0.3, 20842708

STEPS TO REPRODUCE

Run the playbook below

---
- hosts: "localhost"
  gather_facts: false
 
  tasks:
    - community.vmware.vmware_vspan_session:
        hostname: "{{ vcenter_hostname }}"
        username: "{{ vcenter_username }}"
        password: "{{ vcenter_password }}"
        validate_certs: "{{ vcenter_validate_certs }}"
        switch_name: "DVSWITCH"
        name: "AnsibleMirrorTest"
        enabled: false
        description: "Ansible mirror test"
        state: present
        session_type: "encapsulatedRemoteMirrorSource"
        sampling_rate: 1
        source_vm_received:
          name: "testvm1"
          nic_label: "Network adapter 1"
        destination_port: 192.168.45.10
EXPECTED RESULTS

Mandatory parameter "Encapsulation type" and "Session ID" configured. There are 3 options available for Encapsulation type: GRE, ERSPAN type II, ERSPAN type III. Session ID is an integer in case of ERSPAN type II, ERSPAN type III and "0" in case of GRE.

ACTUAL RESULTS

Mandatory parameters "Encapsulation type" and "Session ID" are missing.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant