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

gnng: Display Interfaces Without IP Addresses #273

Open
supertylerc opened this issue Apr 18, 2016 · 5 comments
Open

gnng: Display Interfaces Without IP Addresses #273

supertylerc opened this issue Apr 18, 2016 · 5 comments
Labels

Comments

@supertylerc
Copy link
Contributor

gnng appears to only list interfaces with IP addresses. This is slightly confusing, as the documentation states:

gnng - Fetches network devices interfaces and displays them in a table view.

Fetches interface information from routing and firewall devices. This includes
network and IP information along with the inbound and outbound filters that
may be applied to the interface. Works on Juniper, Netscreen, Foundry, and Cisco
devices.

It includes network and IP information, but the documentation does not state that it excludes interfaces without IP addresses. In many cases, it may be desirable to see all ports, regardless of whether it's a routed interface or not.

Even if it's undesirable to list ports that don't have IP addresses, maybe the documentation should be updated at the least to indicate it won't retrieve interfaces without IPs.

@jathanism
Copy link
Member

jathanism commented Apr 18, 2016

There are two flags that attempt to modify this behavior, but I seem to recall there being some more flaws to them working as intended:

  -d, --include-disabled
                        include disabled interfaces.
  -u, --include-unnumbered
                        include un-numbered interfaces.

@jathanism jathanism added the bug label Apr 18, 2016
@jathanism
Copy link
Member

Yeah this came up in #257, item 4.

@jathanism
Copy link
Member

However, on a device I have that has an unnumbered interface, -u/--include-unnumbered does seem to work as expected:

$ gnng juniper-fw1 --include-unnumbered
DEVICE: juniper-fw1
Interface  | Addresses | Subnets | ACLs IN | ACLs OUT | Description
-------------------------------------------------------------------
ge-0/0/0.0 |           |         |         |          |

For comparison without --include-unnumbered:

$ gnng juniper-fw1
DEVICE: juniper-fw1
Interface | Addresses | Subnets | ACLs IN | ACLs OUT | Description
---------------------

@supertylerc
Copy link
Contributor Author

Is "unnumbered" to mean interfaces that might be L2 ports, or is that unnumbered as in "ip unnumbered"?

@jathanism
Copy link
Member

@supertylerc "ip unnumbered" although I don't think the distinction is really that well-defined. It's pretty much "any interface without an IP address".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants