-
Notifications
You must be signed in to change notification settings - Fork 6
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my only concern is on the "fors" question, the rest looks ok
for host in hosts: | ||
for edge in host.get("edges"): | ||
edge_details = " ".join([edge.get("hostname", ""), edge.get("intName", "")]) | ||
host["edges"] = edge_details |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused by these fors
. It looks like we can get multiple edges and gateways, but we only store the last?? 🤔
I guess I'm missing something here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For all the data I have only one object is ever returned for these attributes. Will update to account for possible other elements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds a new command to find a host in the inventory table. The use case was outlined by IP Fabric.
Current filters are
ip
andmac
validated usingnetutils
.