Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
Matthew Long 7b91752d10
feat: cns writes cni conflist (#1702)
* feat: add cni conflist generator for v4 overlay scenario

* feat: use atomic fs operations

* fix: use same directory as temp dir since /tmp is a tmpfs
2022-11-29 04:56:08 +00:00
aegal 251edbfd04
Alegal/add timeout to hns calls (#1369)
* initial implemenation with timeout

* initial implemenation with timeout hns

* modify test

* modify code slightly

* updating to read in timeout flag and settings

* updating to read in timeout settings

* remove extra space

* correct a typo

* timeout value greater than zero for detection

* add couple ut's and remove needless code

* including timeout in hnsv1

* wip

* address comments

* address comments

* supress linter errors and update conflist

* fix linter and ensure we don't regress our tests

* updating with p.r feedback

* addressing comments

* updating linter warning

* update to address TM's comments

* fix lint error

* correct a linter spacing complaint

* remove fmt.sprintf
2022-05-25 14:18:46 -07:00
Tahmid Alam b13d75a99d
Return if execution mode is v4OnlyOverlay (#1326)
* Return if execution mode is v4OnlyOverlay

* adding Ipam mode and addressing comments

* Fixing tests after IPAM struct changes.

* variable name fix
2022-04-18 12:59:16 -04:00
tamilmani1989 82f4b391a1
feat: [CNI] Enable DSR policy for windows singletenancy (AKS) by default (#1116)
* added dsr changes for windows

* fixed lint and added unit test
removed unused error

* skip adding dsr policy for hnsv1

* addressed comments
lint fix

* fixed windows uts
2021-11-29 10:12:32 -08:00
Evan Baker 96bec09d41
chore: appease the linter (3/?), the big gofumpt (#987)
* gofumpt -w -s .

* small addtl cleanups after gofumpt

* rerun after rebase
2021-09-02 16:33:18 -05:00
Mathew Merrick 1fa243e5f5
CI: Add golint-ci (#888)
* add golint-ci

* add gofmt

* enable linters

* uncap count

* fix linting/fmt issues
2021-06-01 16:58:56 -07:00
msvik 28cf37bc9d
CNI changes to support baremetal scenario (#835)
* Modify CNI for windows baremetal scenario in Azure

* Fix the CNI result for baremetal case

* Addressed PR comments from Tamilmani and Ramiro

* Remove azure-telemetry.exe from cni-baremetal package

* Fix formatting in logging

* Addressed Ramiro's PR review comments

* Formatting fix in printf

Co-authored-by: VK <abc@gmail.com>
2021-03-26 10:28:42 -07:00
aegal 79fd586dda
pass adapter name to hns create network call (#813)
* pass adapter name to hns create network call

* add comments and log
2021-03-08 11:28:20 -08:00
Mathew Merrick 41232c134d
CNI using CNS IPAM (#597)
* Configure CNI to use CNS IPAM
2020-09-29 14:43:19 -07:00
tamilmani1989 6ac5e8c9f0
CNI Ipv6 Dualstack Support (#538)
* added cniv6 plugin

* cni ipv6 base framework

* removed unwanted changes

* added ipv6 change

* added cni ipv6 changes

* drop neighbor discovery messages to other VMs

* fixed issues

* fixed unit tests

* fix nil dereference

* addressed comments

* ipv6 fixes and changes

* addressed comments
2020-04-15 22:30:48 -07:00
Paul Johnston a01afb7a93
Added EB rule for ip addresses in conflist for linux (#505)
* Added EB rule for ip addresses in conflist for linux

* Made methods more generic and removed line from endpoint struct

* Adding log statement

* Fixed syntax error

* Made review2 changes

* Made review3 changes

* Made method lowercase
2020-02-21 14:35:37 -08:00
Vipul Hattiwale 19ac791afc Option to not enable hairpin on the host interface. (#472) 2020-01-16 14:27:25 -08:00
tamilmani1989 5fb1d7f713
Added config option for disabling iptable lock (#470)
* added config option for disabling iptable lock

* added log for iptable and ebtable version

* moved logging dependency package details to platform specific file
2020-01-03 17:08:14 -08:00
Michelle Cone 3ddb72cdbe Add dns capabilities to allow for custom dns in Windows (#305)
* Add dns capabilities to allow for custom dns in Windows

Co-authored-by: James Sturtevant <jstur@microsoft.com>

* Move customDNS logic for Windows into network_windows.go and update link for RuntimeDNSConfig

Co-authored-by: James Sturtevant <jstur@microsoft.com>

* Concatenate the elements of DNS.Searches
2019-03-04 13:01:56 -08:00
Sushant Sharma 6e6260afe5 Implement CNI update for Azure CNI (#265)
* Implement CNI Update for Azure CNI (#21)
2018-10-29 11:10:27 -07:00
erfrimod ceac7912ac Adding PortMapping support to Azure cni for Windows (#256) 2018-10-15 11:30:17 -07:00
tamilmani1989 9a9c2cd8d4 Added support for InfraVnet connectivity in multitenancy CNI (#234)
* Added infravnet connectivity support for multitenancy CNI
2018-08-18 14:50:49 -07:00
tamilmani1989 147c4388c8 Multitenancy Support for Linux (#156)
This PR adds the following capabilities
1. Support to create and connect containers to different Azure Vnets. Every VlanId corresponds to a different Azure Vnet.
2. SNAT support for containers to reach Internet using the container's host IP as the SNAT address.

Both the above options are controlled by the config parameters in Azure CNI.
2018-07-06 11:45:47 -07:00
Yongli Chen 0bbce8daa9 Support k8s DNS & endpoint policy (#127)
* configure dnssuffix & dnsServerList

* add dns info to conflist

* change case for dns info

* remove hardcoding

* remove hardcoding

* parse k8s pod info

* add AdditionalArgs and Dns info to conflist

* serialize policies

* program route info

* start addressign ipam ip leak

* fix 1) ip inconsistency in k8s & pod. 2) IP leak in IPAM.

* remove comments

* separate windows & linux

* remove dnsServers

* remove comments

* address comments

* add dns verification

* abstract linux policy struct

* remove setPolicies
2018-05-03 14:57:31 -07:00
Onur Filiz e2989826af Add support for CNI spec versions 0.3.0 and 0.3.1 2017-05-09 19:29:15 -07:00
Onur Filiz 278ce7587b Added support for Linux l2tunnel mode 2017-03-06 16:24:20 -08:00
Onur Filiz 437f7876d7 Added license notice to all source files 2017-02-12 02:03:39 -08:00
Onur Filiz 4f561e1d5b Moved NetworkConfig and test hook to their own files 2017-02-05 21:26:57 -08:00