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

Loopback needs to be separated in show interface output #25

Open
dblviking opened this issue Jan 7, 2025 · 0 comments
Open

Loopback needs to be separated in show interface output #25

dblviking opened this issue Jan 7, 2025 · 0 comments

Comments

@dblviking
Copy link

dblviking commented Jan 7, 2025

community.network 5.1.0

slx_facts does not parse 'show interface' properly when loopbacks are present.

There is no new line character separating the loopback and the interfaces. Therefore, the first interface in the ansible_net_interfaces dict is a regex blend of all interfaces in the seamless text block.

How are we expected to parse this?

show interface

Loopback 1 is up, line protocol is up
Hardware is Loopback
Pluggable media not present
Interface index (ifindex) is 1476395009 (0x58000001)
IP MTU 1500 bytes
LineSpeed Actual : Nil
LineSpeed Configured : Auto
Last clearing of show interface counters: 40w6d21h
Queueing strategy: fifo
Primary Internet Address is 10.255.0.16/32
FEC Mode - RS-FEC
Loopback 2 is up, line protocol is up
Hardware is Loopback
Pluggable media not present
Interface index (ifindex) is 1476395010 (0x58000002)
IP MTU 1500 bytes
LineSpeed Actual : Nil
LineSpeed Configured : Auto
Last clearing of show interface counters: 40w6d21h
Queueing strategy: fifo
Primary Internet Address is 10.255.0.17/32
FEC Mode - RS-FEC
Ethernet 0/1:1 is up, line protocol is up (connected)

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