Lucas Mundim
badf8645be
feat(bgp): add custom BGP import rejection policy support via node annotation
2022-03-23 09:27:38 -05:00
Aaron U'Ren
b9a9246e8e
fix(lint): don't error on deprecated protobuf funcs
2021-12-02 12:13:31 +01:00
Aaron U'Ren
419c078c60
feat(.golangci.yml): enable unparam linter and remediate
2021-09-11 16:20:07 -05:00
Aaron U'Ren
6208bfac46
feat(.golangci.yml): enable gomnd and remediate
2021-09-11 16:20:07 -05:00
Aaron U'Ren
f52fddddee
feat(.golangci.yml): enable gocritic and remediate
2021-09-11 16:20:07 -05:00
Aaron U'Ren
2e590a4185
fix(NRC): consolidate route delete logic
...
This also makes the call that happens upon path withdrawl safer, by
checking to see if the route exists before deleting it.
One departure here is that we used to only log errors, now we return
errors as soon as they are encountered, this may cause some routes to
persist even if they had been cleaned before by stopping at the first
error. However, I think that it makes for more consistent and expected
behavior if this needs to be called in another place.
2021-07-30 12:59:32 -05:00
Aaron U'Ren
63c3b90e05
fact(injectRoute): extract parseBGPPath method to simplify
2021-07-30 12:59:32 -05:00
Aaron U'Ren
a610596277
fact(GetMTUFromNodeIP): move up a layer of abstraction
...
This function is useful for more than just the NRC, move it up a layer
into the global utils so it can be used from multiple controllers.
2021-05-17 16:33:15 -05:00
Aaron U'Ren
9cbc3763b3
feat(bgp): add BGP communities support via node annotation
2021-05-17 12:08:36 -05:00
Aaron U'Ren
a86b3fad35
fact: handle errors from Close() explicitely
2021-04-14 16:23:59 -05:00
Aaron U'Ren
96675e620b
fix: don't capitalize error messages
...
It is standard practice in Go to not capitalize error messages:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
2021-04-14 16:23:59 -05:00
Aaron U'Ren
e9c77d0a35
fix(comments): misspellings and bad doc strings
2021-04-14 16:23:59 -05:00
Murali Reddy
7904b7c950
addressing review comments
2020-10-01 23:00:36 -05:00
Murali Reddy
db1bd5611e
set mtu in cni spec to auto configure MTU's of the pod's veth's and kube-bridge interfaces
...
Fixes #165
2020-10-01 23:00:36 -05:00
Murali Reddy
3c734fb96a
merge gobgp-update into master ( #982 )
...
* merge gobgp-update into master
* update travis.yaml go version:
* go get github.com/osrg/gobgp to build gobgp
* install git as go get needs it
2020-09-07 10:27:58 +05:30
Murali Reddy
a33089d292
[testing] run go linters ( #943 )
...
* run go linters for static code checking
* fix(lint): fix all goimports linting errors
* fix(lint): fix all golint errors
* fix(lint): fix all spelling errors
Co-authored-by: Aaron U'Ren <aauren@gmail.com>
2020-07-28 23:52:41 +05:30
Lars Ekman
f95cdedfaa
Improved detect in ipv6IsEnabled() ( #555 )
...
* Improved detect in ipv6IsEnabled()
* Added comments in ipv6IsEnabled.
Problem described in #155
2018-10-27 09:21:38 +05:30
Lars Ekman
077ff86bcc
Ipv6; BGP peering ( #545 )
...
* Use ip6tables for ipv6 and handle ipv6 for egress rules
* Make the temp ipset's fit into 31 characters
This should be improved. Some hash string should be used for
temp names.
2018-10-10 11:02:59 +05:30
Johan Thomsen
1db83adfb9
Added support for custom BGP ports with 179 still being default ( #492 ) ( #493 )
...
* Introduced new cmdline flag --bgp-port, which controls BGP Server listening port and remote port of in-cluster node peers
* Introduced new cmdline flag --peer-router-ports, which controls remote BGP port for external peers
* Introduced new node annotation kube-router.io/peer.ports with same effect as --peer-router-ports
2018-08-15 22:59:47 +05:30
Murali Reddy
23d43622ec
split routing controllers to smaller modules by function ( #406 )
...
* split routing controllers to smaller modules by function
* review comments
2018-04-23 05:42:28 +00:00