tuning anycast and bridge conflist
authorMichael C Cambria <mcc@node.halfball.org>
Sat, 11 Nov 2017 15:52:30 +0000 (15:52 +0000)
committerMichael C Cambria <mcc@node.halfball.org>
Sat, 11 Nov 2017 15:52:30 +0000 (15:52 +0000)
anycast.conflist
anycast.conflist.orig [new file with mode: 0644]
plugins/anycast/main.go

index ba2b0be..2c33e62 100644 (file)
       ]
       }
     },
+    {
+      "name": "mytuning",
+      "type": "tuning",
+      "sysctl": {
+              "net.core.somaxconn": "500"
+      }
+    },
     {
        "type": "anycast",
        "myAwesomeFlag": true,
diff --git a/anycast.conflist.orig b/anycast.conflist.orig
new file mode 100644 (file)
index 0000000..ba2b0be
--- /dev/null
@@ -0,0 +1,28 @@
+{
+  "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"
+    }
+  ]
+}
+
index 3fe560f..979c04f 100644 (file)
@@ -189,6 +189,8 @@ func cmdAdd(args *skel.CmdArgs) error {
             return err
         }
 
+       log.Println("AdvRoute: BGP Advertise /32 Complete", staticIP, viaIP, uplink)
+
        // Pass trough the result for the next plugin
        return types.PrintResult(conf.PrevResult, conf.CNIVersion)
 }