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

Sub-interfaces with VLAN ID defined. Vlan id not returned in dict. Other L3 related information not returned.

Open roadracer96 opened this issue 1 year ago • 0 comments

SUMMARY

On a JunOS device using SP style configuration of layer-2 interfaces, a vlan id defined as such:

interfaces { ge-0/0/0 { flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 100 { vlan-id 100; family inet { mtu 9000; address 10.10.10.22/31; } family iso; family mpls { mtu 9182; } } } }

ISSUE TYPE
  • Bug Report
COMPONENT NAME

junos_l3_interfaces/junos_facts

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

CONFIGURATION
N/A
OS / ENVIRONMENT

N/A

STEPS TO REPRODUCE

Configure a device with SP style VLAN configuration and run a play using the junos_facts module, querying l2_interfaces.

- name: Get JunOS Facts
  junipernetworks.junos.junos_facts:
    gather_subset: [ hardware,interfaces ]
    gather_network_resources: [ lacp,lacp_interfaces,lag_interfaces,l2_interfaces,l3_interfaces,interfaces]
  register: facts
EXPECTED RESULTS

I would expect the configured VLAN-ID of the interface to be returned along with other Layer3 information. This would include the IP(Or IPV6) MTU, MPLS MTU, the state of MPLS or ISO on the interfaces (enabled or other)

ACTUAL RESULTS

Interface IP and name/unit returned, nothing else.


roadracer96 avatar Nov 01 '23 13:11 roadracer96