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

Listener: the API change for multiple addresses support #21391

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/envoy/admin/v3/listeners.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,9 @@ message ListenerStatus {
// The actual local address that the listener is listening on. If a listener was configured
// to listen on port 0, then this address has the port that was allocated by the OS.
config.core.v3.Address local_address = 2;

// The additional actual local addresses that the listener is listening on. If a listener was configured
// to listen on port 0, then this address has the port that was allocated by the OS.
// [#not-implemented-hide:]
repeated config.core.v3.Address additional_local_addresses = 3;
}
7 changes: 7 additions & 0 deletions api/envoy/config/listener/v3/listener.proto
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ message Listener {
// Required unless *api_listener* or *listener_specifier* is populated.
core.v3.Address address = 2;

// The additional addresses the listener should listen on. The address must be unqiue across all
// the listeners, also in the single listener. Multiple addresses with port 0 can be supported,
// same as the `address` field described. For multiple addresses in single listener,
// all addresses use the same protocol, and multiple internal addresses are not yet supported.
// [#not-implemented-hide:]
repeated core.v3.Address additional_addresses = 33;

// Optional prefix to use on listener stats. If empty, the stats will be rooted at
// `listener.<address as string>.`. If non-empty, stats will be rooted at
// `listener.<stat_prefix>.`.
Expand Down