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/12 04:40:26 UTC
mesos git commit: Added `PortMapping` for frameworks in v1 API as
well.
Repository: mesos
Updated Branches:
refs/heads/master a12b21278 -> ab94f7b15
Added `PortMapping` for frameworks in v1 API as well.
Review: https://reviews.apache.org/r/51023/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ab94f7b1
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ab94f7b1
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ab94f7b1
Branch: refs/heads/master
Commit: ab94f7b15a2ae38b44753c7e0493caf98a44af5e
Parents: a12b212
Author: Avinash sridharan <av...@mesosphere.io>
Authored: Thu Aug 11 21:40:18 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Thu Aug 11 21:40:18 2016 -0700
----------------------------------------------------------------------
include/mesos/v1/mesos.proto | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/ab94f7b1/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 85468f8..a836f6e 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -1825,6 +1825,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;
};