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

Parse src, linkdown and onlink from ip route output #2

Open
KOLANICH opened this issue May 31, 2022 · 3 comments
Open

Parse src, linkdown and onlink from ip route output #2

KOLANICH opened this issue May 31, 2022 · 3 comments
Assignees

Comments

@KOLANICH
Copy link

No description provided.

@brandonmpace brandonmpace self-assigned this Jun 1, 2022
@brandonmpace
Copy link
Owner

Hello,

Is this information that you would like to have accessible on a Route instance?

Do you have some examples for them? (with fake/replaced data)

@KOLANICH
Copy link
Author

KOLANICH commented Jun 1, 2022

Is this information that you would like to have accessible on a Route instance?

Exactly this.

Do you have some examples for them?

From https://unix.stackexchange.com/questions/579087/whats-the-meaning-of-linkdown-and-online-in-linux-route

192.168.123.0/24 dev enp0s25 scope link linkdown
192.168.125.0/24 via 192.168.123.111 dev wlp3s0 onlink
192.168.126.0/24 via 192.168.123.111 dev enp0s25 onlink linkdown

From https://www.redhat.com/sysadmin/route-ip-route

192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown

from https://serverfault.com/questions/1079631/interface-following-a-link

192.0.2.0/25 dev vethtest1 proto kernel scope link src 192.0.2.2 dead linkdown

@KOLANICH
Copy link
Author

KOLANICH commented Jun 1, 2022

BTW I wonder if we should write a formal grammar instead of handcoding the parser.

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

2 participants