azure-container-networking/ipam
Paul Yu 03e0447f32
add L1VH IB support on CNI (#2762)
* add L1VH IB support on CNI

* fix IB issues

* fix UT errors

* fix linter issues

* add win 2025 support for cni image build

* add and comments

* fix a logic bug

* disable endpoint creation and deletion if it's IB NIC

* fix a linter issue

* add UTs

* add UTs for powershell

* enhance Test_getInterfaceInfoKey test case

* remove windows 2025 build from pipeline

* fix some issues

* add an UT to test pnpID

* fix an issue

* fix an ut

* add double quotes

* unblock a brunch of issues

* remove unnecessary codes

* upgradelatest upstream cnii build

* fix a log

* add windows build on pipeline temporarily

* remove backendNIC check for findMasterInterface

* add ut to confirm IB does not create endpoint

* fix linter issue that use %q

* format network.go

* add more uts to cover powershell commands

* remove windows2025 pipeline build

* enhance logs

* fix cniResult format

* add getPnpidstate func

* fix the issue for infraNIC routes

* fix the issue for infraNIC routes

* fix gateway ip address

* add get-pnpdevice UT

* add accelnetNIC support for L1VH

* enhance logic for accelnet nic netowrk flag

* enhance network windows uts

* fix bitmask operator

* use another PR for accelnet PR

* gofumpt files

* fix comments for functional codes

* add uts

* add more uts

* fix uts

* fix functional codes comments

* Update cni/network/network.go

Co-authored-by: tamilmani1989 <tamanoha@microsoft.com>
Signed-off-by: Paul Yu <129891899+paulyufan2@users.noreply.github.com>

* fix latest comments

* fix an UT

* fix invoker_cns_test.go

* fix ut bugs

* fix ut with SkipDefaultRoutes

* add combination ut

* add combination ut

* add ncGateway address to ut

* fix an ut bug

* fix ut bug

* add unhappy test cases

* add endpoint add and deletion cases

* push mock network creation hns api test cases

* remove network creation hns call

* add uts to mock hns network and endpoint calls

* fix ut linter issues

* add infraNIC only invoker test case

* add unhappy path test case

* remove infraNIC only case

* remove unhappy test case

* re-archetect cni ib codes and test

* remove unnecessary logs

* save endpoint state

* save endpoint object for IB

* fix linter issue

* fix a brunch of linter issues

* fix linter issues

* fix linter issue

* fix ut for returned error msg

* temporary add manifest build for CNS/CNI to pipeline

* feedback fix

* fix linter issue

* add ut to get networkName and networkID

* remove Ankit's PR to build cns image

* revert Ankit's changes back

* remove win2025 build from pipeline

* log error for invalid mac address

* revert convertInterfaceInfoToCniResult impl

* fix feedback

* add crd changes to test

* add win2025 yaml to build image

* pass containerID to cns

* revert changes back for review

* revert changes back for review

* gofumpt endpoint.go

* remove comment

* add latest comments

* Update network/endpoint_windows.go

Co-authored-by: tamilmani1989 <tamanoha@microsoft.com>
Signed-off-by: Paul Yu <129891899+paulyufan2@users.noreply.github.com>

* fix a linter issue

* add error check

* add error check

* gofumpt endpoint windows test file

---------

Signed-off-by: Paul Yu <129891899+paulyufan2@users.noreply.github.com>
Co-authored-by: tamilmani1989 <tamanoha@microsoft.com>
2024-07-11 16:05:28 +00:00
..
testfiles Read network configuration from a file on azure stack (#369) 2019-07-03 15:41:53 -07:00
api.go return early if CNI state exist and add some style fixes (#1412) 2022-06-06 10:52:38 -05:00
azure.go [CNI] Migrate zap logger for acn ipam package (#2299) 2023-10-28 04:38:36 +00:00
azure_test.go update github.com/containernetworking/cni (#1537) 2022-08-22 09:15:53 -07:00
fileIpam.go [CNI] Migrate zap logger for acn ipam package (#2299) 2023-10-28 04:38:36 +00:00
fileIpam_test.go chore: appease the linter (3/?), the big gofumpt (#987) 2021-09-02 16:33:18 -05:00
ipv6Ipam.go [CNI] Migrate zap logger for acn ipam package (#2299) 2023-10-28 04:38:36 +00:00
ipv6Ipam_test.go chore: appease the linter (3/?), the big gofumpt (#987) 2021-09-02 16:33:18 -05:00
manager.go [CNI] Migrate zap logger for acn ipam package (#2299) 2023-10-28 04:38:36 +00:00
manager_ipv6Ipam_test.go chore: appease the linter (3/?), the big gofumpt (#987) 2021-09-02 16:33:18 -05:00
manager_test.go [CNI] zap logger for platform package (#2233) 2023-10-13 12:08:58 -07:00
null.go chore: appease the linter (3/?), the big gofumpt (#987) 2021-09-02 16:33:18 -05:00
pool.go add L1VH IB support on CNI (#2762) 2024-07-11 16:05:28 +00:00
pool_test.go Bugfix/14337706/remove state file (#1392) 2022-05-20 17:43:34 -05:00