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

FR - API Endpoints to submit arpnip and macsuck results #893

Closed
rc9000 opened this issue Jul 20, 2022 · 4 comments · Fixed by #942
Closed

FR - API Endpoints to submit arpnip and macsuck results #893

rc9000 opened this issue Jul 20, 2022 · 4 comments · Fixed by #942
Assignees

Comments

@rc9000
Copy link
Member

rc9000 commented Jul 20, 2022

It would be great if we could submit arpnip and macsuck results via API. Usecases:

I think this could open up new classes of devices with significantly lower barrier to entry than we had with e.g. the Worker Plugin-based SSH collector.

@ollyg ollyg changed the title Feature Request: API Endpoints to submit arpnip and macsuck results FR - API Endpoints to submit arpnip and macsuck results Aug 1, 2022
@ollyg ollyg self-assigned this Aug 3, 2022
@ollyg ollyg removed their assignment Sep 6, 2022
@ollyg ollyg self-assigned this Oct 19, 2022
@ollyg
Copy link
Member

ollyg commented Nov 2, 2022

had "a big think" all about arp/mac submission API endpoints. Like all things, more tricky than it first seems, but I believe I have a way forward. I'll need to refactor the existing arp/mac code a bit then can work on the API

the tricky bit is that Netdisco is doing a lot of sanity checking and cleanup of the data it gets from the device, for example to filter VLANs, and most important to make sure that nodes appear on the switch they are on (basically discarding remote nodes, but it's more complex than that). I'd like to keep all this logic so that you just submit the MAC table and don't worry about uplinks/etc and Netdisco still applies all its filtering

plus taking into account all the config options we have, like allowing "bleed" to upstream switches, ignoring specific VLANs or Ports, etc

basically ... not safe just to dump a mac/arp table into the database, it'd screw up the secret-sauce of netdisco

@maxslug
Copy link
Member

maxslug commented Nov 2, 2022 via email

@ollyg
Copy link
Member

ollyg commented Nov 3, 2022

Ollie, Don't give away all our secrets!

Netdisco is written in Perl. We're safe.

@rc9000
Copy link
Member Author

rc9000 commented Nov 25, 2022

Excellent many thanks!

No ETA, but I plan to extend ntcsuck to support all main Cisco OS variants and make it a viable option for snmpv3-only networks with many switches and vlans. We'll see how that goes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants