* ci: comment out windows cyclonus and windows scale test
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
* ci: slim down windows conformance to 14 tests
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
* ci: make sure conformance skips "Linux Only"
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
* ci: conformance was not running test cases due to formatting
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
---------
Signed-off-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
* Add CNS API to retrieve VMUniqueID from IMDS
* Address the PR review comments
* Address the security comment from Evans to expose this API wherever needed
* fixed the linter error
* address the PR comments from Matt
* lowercase the struct json fields
* validate endpoint struct after endpoint creation
* add uts to validate endpoint info and endpoint structs have hns network and endpoint id fields populated
endpoint struct should have the hns endpoint id after new endpoint
endpoint info struct should have the hns endpoint id after new endpoint as well
network struct should have the hns network id after new network
endpoint info struct should have the hns network id after new network as well
endpoint struct should have the hns network id after new endpoint if endpoint info had it
* address linter issue
* address feedback by validating info sent to cns
* modify hnsv2 wrapper behavior to only set hns id if not already set for npm uts
* 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>
This testing manifest is flagged for exposed passwords. It is not a real password, but deleting it anyway to prevent it from being flagged again.
Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
* test azurelinux and arm64 for cilium dual stack
* add dualstack parameter
* add rdma
* add image build for ipv6-hp-bpf
* use daemonset-dualstack.yaml
* typo
* set version ipv6
* add export line
* change node count
* add prefix length from mtpnc to podipinfo & gatewayip
* separate getIpConfig based on OS for HNS prefix changes, add subnet in UTs
* import packages
* refactor middleware into os files after rebase w/ master
* split only the subnet-prefix assign part
* fix lint errors
* add UTs to test the function's behavior for linux vs windows
---------
Signed-off-by: Kshitija Murudi <kmurudi@microsoft.com>
Co-authored-by: paulyufan2 <paulyu01@outlook.com>
* Adding backend interfaces support for CNS
* Fixing the log line
* Moving backend nic functions to platform package
* Moving the pnpID fetching to platform package
* Moving the mapping to CRD mode
* Moving macaddress parsing to net package function
* removing the backend nic config
* Handling multiple interface information
* Adding error handling for macaddress parsing
* Moving pnpid mapping to swift v2 flow
* Adding pipeline vars
* Adding ut's for Happy paths
* Adding ut's for Happy paths
* Adding mtpnc check
* Rebasing with master
* Addressing lint errors
* Adding function to linux file
* Addressing lint errors
* Addressing lint comments
* Addressing Lint issues
* Modifying ut's
* removing mutex lock on cache
* Adding podnetwork instance label
* Modifying ut's after change
* Moving function out of restserver
* Moving mapping after crd intial state
* Adding the config debug statements
* removing the unused config
* Adding the debug statements
* Adding the debug statements
* Adding more debug logs
* removing log lines and adding mtpnc status check
* Moving mapping to state file
* Rebasing and removing the debug statements
* Addressing lint errors
* removing the debug pipeline changes
* Adding more coverage
* Adding test coverage and unhappy paths
* Addressing lint errors
* addressing lint errors
* Addressing lint errors
* move bufio reader creation out of for loop
if the bufio reader is created in the for loop we get unmarshaling errors
* fix linter issue
* add fixed ut
* fix existing unit test flake due to closing pipe on error
a previous fix ensured the socket closed on error, but this caused an existing ut to nondeterministically fail
without the previous fix, the socket wouldn't have been closed on error
* make read inline