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/10/12 18:01:55 UTC

[4/5] mesos git commit: Added constants for CNI commands.

Added constants for CNI commands.

Review: https://reviews.apache.org/r/51767/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/89d8d51d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/89d8d51d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/89d8d51d

Branch: refs/heads/master
Commit: 89d8d51db2fd356b1f7068d83c3be73c82cc64cf
Parents: 7a9f1c4
Author: Avinash sridharan <av...@mesosphere.io>
Authored: Wed Oct 12 09:53:57 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Wed Oct 12 10:59:45 2016 -0700

----------------------------------------------------------------------
 src/slave/containerizer/mesos/isolators/network/cni/spec.hpp | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/89d8d51d/src/slave/containerizer/mesos/isolators/network/cni/spec.hpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/isolators/network/cni/spec.hpp b/src/slave/containerizer/mesos/isolators/network/cni/spec.hpp
index 9f0542a..ccd511e 100644
--- a/src/slave/containerizer/mesos/isolators/network/cni/spec.hpp
+++ b/src/slave/containerizer/mesos/isolators/network/cni/spec.hpp
@@ -32,6 +32,11 @@ namespace spec {
 constexpr char CNI_VERSION[] = "0.3.0";
 
 
+// CNI commands.
+constexpr char CNI_CMD_ADD[] = "ADD";
+constexpr char CNI_CMD_DEL[] = "DEL";
+
+
 // Well-known CNI error codes:
 // https://github.com/containernetworking/cni/blob/master/SPEC.md#well-known-error-codes
 constexpr uint32_t CNI_ERROR_INCOMPATIBLE_VERSION = 1;