You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/08/11 20:10:21 UTC
mesos git commit: Added ability for frameworks to specify port
mapping for CNI networks.
Repository: mesos
Updated Branches:
refs/heads/master 8ab880272 -> 5d2989b0e
Added ability for frameworks to specify port mapping for CNI networks.
Review: https://reviews.apache.org/r/51001/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5d2989b0
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5d2989b0
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5d2989b0
Branch: refs/heads/master
Commit: 5d2989b0e8f71d59c53d7475ed3e92347cddf4dc
Parents: 8ab8802
Author: Avinash sridharan <av...@mesosphere.io>
Authored: Thu Aug 11 13:10:11 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu Aug 11 13:10:11 2016 -0700
----------------------------------------------------------------------
include/mesos/mesos.proto | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/5d2989b0/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 6fd8363..af29dab 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -1826,6 +1826,16 @@ message NetworkInfo {
// To tag certain metadata to be used by Isolator/IPAM, e.g., rack, etc.
optional Labels labels = 4;
+
+ // Specifies a port mapping request for the task on this network.
+ message PortMapping {
+ required uint32 host_port = 1;
+ required uint32 container_port = 2;
+ // Protocol to expose as (ie: tcp, udp).
+ optional string protocol = 3;
+ }
+
+ repeated PortMapping port_mappings = 7;
};