From eff441b4dc273b97e4cafcb64d3dd5f2bc17bfb5 Mon Sep 17 00:00:00 2001 From: Michael C Cambria Date: Sat, 11 Nov 2017 15:52:30 +0000 Subject: [PATCH] tuning anycast and bridge conflist --- anycast.conflist | 7 +++++++ anycast.conflist.orig | 28 ++++++++++++++++++++++++++++ plugins/anycast/main.go | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 anycast.conflist.orig diff --git a/anycast.conflist b/anycast.conflist index ba2b0be..2c33e62 100644 --- a/anycast.conflist +++ b/anycast.conflist @@ -15,6 +15,13 @@ ] } }, + { + "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 index 0000000..ba2b0be --- /dev/null +++ b/anycast.conflist.orig @@ -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" + } + ] +} + diff --git a/plugins/anycast/main.go b/plugins/anycast/main.go index 3fe560f..979c04f 100644 --- a/plugins/anycast/main.go +++ b/plugins/anycast/main.go @@ -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) } -- 2.44.0