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

junos_routing_instances module does not interpret virtual-switch instance-type #456

Open
roadracer96 opened this issue Nov 1, 2023 · 0 comments · May be fixed by #515
Open

junos_routing_instances module does not interpret virtual-switch instance-type #456

roadracer96 opened this issue Nov 1, 2023 · 0 comments · May be fixed by #515
Assignees
Labels
has_pr This issue has an associated PR.

Comments

@roadracer96
Copy link

SUMMARY

TASK [dev2netbox : Get JunOS VRFs] ******************************************************************************************************************************************************************************************
fatal: [lab-acx7024-1]: FAILED! => {
"changed": false
}

MSG:

value of type must be one of: evpn, evpn-vpws, forwarding, l2backhaul-vpn, l2vpn, layer2-control, mac-vrf, mpls-forwarding, mpls-internet-multicast, no-forwarding, virtual-router, vpls, vrf, got: virtual-switch found in config

PLAY RECAP ******************************************************************************************************************************************************************************************************************
lab-acx7024-1 : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

ISSUE TYPE
  • Bug Report
COMPONENT NAME

junos_routing_instances

ANSIBLE VERSION
ansible [core 2.13.8]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/MERIT/denike/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/MERIT/denike/.local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/MERIT/denike/.ansible/collections:/opt/ansible/collections
  executable location = /home/MERIT/denike/.local/bin/ansible
  python version = 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = True

COLLECTION VERSION
# /home/MERIT/denike/.ansible/collections/ansible_collections
Collection            Version
--------------------- -------
junipernetworks.junos 5.0.0  

CONFIGURATION
COLLECTIONS_PATHS(/etc/ansible/ansible.cfg) = ['/home/MERIT/denike/.ansible/collections', '/opt/ansible/collections']
DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 10
DEFAULT_GATHERING(/etc/ansible/ansible.cfg) = explicit
DEFAULT_HOST_LIST(/etc/ansible/ansible.cfg) = ['/opt/ansible/netdevices']
DEFAULT_MODULE_NAME(/etc/ansible/ansible.cfg) = raw
DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = debug
DEPRECATION_WARNINGS(/etc/ansible/ansible.cfg) = False
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
INTERPRETER_PYTHON(/etc/ansible/ansible.cfg) = auto_legacy_silent
INVENTORY_ENABLED(/etc/ansible/ansible.cfg) = ['host_list', 'script', 'auto', 'yaml', 'ini', 'toml', 'netbox.netbox.nb_inventory']
PERSISTENT_COMMAND_TIMEOUT(/etc/ansible/ansible.cfg) = 60
RETRY_FILES_ENABLED(/etc/ansible/ansible.cfg) = False

OS / ENVIRONMENT

Ubuntu 20.04.3

STEPS TO REPRODUCE
- name: Get JunOS VRFs
  junipernetworks.junos.junos_routing_instances:
    state: gathered
  register: instance_facts
EXPECTED RESULTS

Should, at minimum, return a dict of the routing-instance that has the interfaces assigned to the instance. In this case, VLANs are defined in a routing-instance so, perhaps some TLC in the VLAN module is required.

shop@LAB-ACX7024-1# show routing-instances EVPN
instance-type virtual-switch;
protocols {
evpn {
extended-vlan-list 456;
}
}
route-distinguisher 10.0.0.21:444;
vrf-target target:65535:444;
vlans {
TESTCUST1 {
vlan-id 456;
interface ae0.456;
}
}

ACTUAL RESULTS

N/A


@rohitthakur2590 rohitthakur2590 self-assigned this Jun 4, 2024
@rohitthakur2590 rohitthakur2590 added the has_pr This issue has an associated PR. label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has_pr This issue has an associated PR.
Projects
None yet
2 participants