faucetsdn / faucetagent

gNMI agent for faucet configuration
4 stars 2 forks source link

Configuration option to listen on only specific interfaces, rather than all of them #23

Closed cglewis closed 5 years ago

cglewis commented 5 years ago

The server agent currently starts the gRPC server listening port on all interfaces:

    server.add_secure_port('[::]:%d' % gnmi_port, credentials)

It would be nice to make that configurable, for cases where you might want to specify as particular interface to listen on, for example 127.0.0.1.

lantz commented 5 years ago

Good idea; feel free to submit a pull request btw