--- /dev/null
+{
+ "name": "anycast",
+ "cniVersion": "0.3.1",
+ "plugins": [
+ {
+ "type": "bridge",
+ "bridge": "mynet",
+ "ipMasq": true,
+ "isGateway": true,
+ "ipam": {
+ "type": "host-local",
+ "subnet": "10.244.10.0/24",
+ "routes": [
+ { "dst": "0.0.0.0/0" }
+ ]
+ }
+ },
+ {
+ "type": "anycast",
+ "myAwesomeFlag": true,
+ "anotherAwesomeArg": "172.19.0.1",
+ "StaticIP": "10.244.10.209",
+ "Uplink": "mynet",
+ "viaIP": "10.244.10.1"
+ }
+ ]
+}
+
--- /dev/null
+#/bin/bash
+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 CAP_ARGS='{
+ "advertise": [
+ {
+ "myAwesomeFlag": "true",
+ "anotherAwesomeArg": "172.19.0.1"
+ }
+ ]
+}'
+
+#./cnitool add anycast /var/run/netns/test0
+/home/mcc/go/src/github.com/containernetworking/cni/cnitool/cnitool add anycast /var/run/netns/test0
+
+
--- /dev/null
+#/bin/bash
+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 CAP_ARGS='{
+ "advertise": [
+ {
+ "myAwesomeFlag": "true",
+ "anotherAwesomeArg": "172.19.0.1"
+ }
+ ]
+}'
+
+#./cnitool add anycast /var/run/netns/test0
+/home/mcc/go/src/github.com/containernetworking/cni/cnitool/cnitool del anycast /var/run/netns/test0
+
+