junipernetworks.junos icon indicating copy to clipboard operation
junipernetworks.junos copied to clipboard

junos_routing_instances module does not interpret virtual-switch instance-type

Open roadracer96 opened this issue 1 year ago • 0 comments

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


roadracer96 avatar Nov 01 '23 12:11 roadracer96