packetbroker / api

Packet Broker API
Apache License 2.0
7 stars 0 forks source link

Get network targets #33

Closed johanstokking closed 3 years ago

johanstokking commented 3 years ago

Summary

Get network targets

Why do we need this?

For Packet Broker Router to get network targets to send messages to.

What is already there? What do you see now?

This is currently part of the routes, but those only include home networks. Forwarders have targets too, for asynchronous responses.

What is missing? What do you want to see?

There should be a way for Router to fetch (all) network targets from Packet Broker Control Plane.

How do you propose to implement this?

Add a new rpc ListTargets() to the Routes service.

Consider removing the target information from ListRoutes(). It doesn't hurt, but we can move everything under ListTargets().

Can you do this yourself and submit a Pull Request?

Yes