Skip to content

JunOS get_interfaces is reporting physical-interface MTU on logical-interfaces #2164

Open
@TomCos

Description

@TomCos

The logical-interface MTU is being ignored when get_interfaces returns data. Example:
`
user@device> show configuration | display set | match et-0/0/1 | match mtu

set interfaces et-0/0/1 mtu 9192
set interfaces et-0/0/1 unit 0 family inet mtu 9100
`

Python code to replicate:
junos.get_interfaces()

Incorrect results returned example:
`
et-0/0/1': {'is_up': True, 'is_enabled': True, 'description': 'interface_desc', 'last_flapped': 7251020.0, 'mac_address': 'XX:XX:XX:XX:XX:XX', 'speed': 40000.0, 'mtu': 9192},

'et-0/0/1.0': {'is_up': True, 'is_enabled': True, 'description': 'interface_desc', 'last_flapped': 7251022.0, 'mac_address': 'XX:XX:XX:XX:XX:XX', 'speed': 40000.0, 'mtu': 9192},
`

The second entry in the results is the logical interface, however as you can see, the MTU is incorrectly display 9192, as opposed to 9100.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions