Use args ips instead of CNI_ARGS to select static IP address
authorMichael C Cambria <mcc@node.halfball.org>
Thu, 31 Aug 2017 16:02:48 +0000 (16:02 +0000)
committerMichael C Cambria <mcc@node.halfball.org>
Thu, 31 Aug 2017 16:02:48 +0000 (16:02 +0000)
mesos-test-add.sh
mesos-test-del.sh
mesos-test.conf

index 2440507..60c75d0 100755 (executable)
@@ -3,7 +3,7 @@ export DEBUG=1
 export NETCONFPATH=/home/mcc/go/src/github.com/containernetworking/plugins
 export CNI_PATH=/home/mcc/go/src/github.com/containernetworking/plugins/bin
 
-export CNI_ARGS="IP=10.244.10.20"
+#export CNI_ARGS="IP=10.244.10.20"
 export MCCVAL="Jamal Env Value"
 
 sudo -E  /home/mcc/go/src/github.com/containernetworking/cni/cnitool/cnitool add mesos-test /var/run/netns/test0
index 4d41c6a..5b136ce 100755 (executable)
@@ -3,7 +3,7 @@ export DEBUG=1
 export NETCONFPATH=/home/mcc/go/src/github.com/containernetworking/plugins
 export CNI_PATH=/home/mcc/go/src/github.com/containernetworking/plugins/bin
 
-export CNI_ARGS="IP=10.244.10.20"
+#export CNI_ARGS="IP=10.244.10.20"
 export MCCVAL="Jamal Env Value"
 
 sudo -E  /home/mcc/go/src/github.com/containernetworking/cni/cnitool/cnitool del mesos-test /var/run/netns/test0
index 6704b98..a2ccae6 100644 (file)
               { "key" : "app", "value" : "myapp" },
               { "key" : "mccKey1", "value" : "mccVal1" },
               { "key" : "bs", "value" : "bsVal" },
-              { "key" : "StaticIP", "value" : "172.19.0.209" },
-              { "key" : "Uplink", "value" : "eth1p0" },
-              { "key" : "viaIP", "value" : "172.19.0.1" },
+              { "key" : "StaticIP", "value" : "10.244.10.22"},
+              { "key" : "Uplink", "value" : "eth0" },
+              { "key" : "viaIP", "value" : "10.244.10.1" },
               { "key" : "mccKey2", "value" : "mccVal2" },
               { "key" : "env", "value" : "prod" }
             ]
           }
         }
-      }
+      },
+"ips": ["10.244.10.23"]
     },
       "ipam": {
        "type": "host-local",