* 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
* fix: remove state file to let CNI autorecover if CNI state file not present and RefCount not 0
* fix: move to invoker_azure.go
* fix: move to invoker_azure.go
* fix: revert error to private
* fix: unit test
* fix: move into delegate add/delete
Co-authored-by: Keith Nguyen <keithnguyen@microsoft.com>
* CNI Linux: Add 10 seconds timeout for ExecuteCommand
* ran gofmt on changed file
* Fix lint error
* Added unit test for ExecuteCommand for linux
* Moved timeout to execlient. It has default timeout and method to override it now
* reduce timeout values in unit tests
Co-authored-by: msvik <msvik@users.noreply.github.com>
Co-authored-by: VK <misvik@users.noreply.github.com>
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* Improve boot time query on Windows
* Ad tz info of time in log
Co-authored-by: tamilmani1989 <tamilmani1989@gmail.com>
Co-authored-by: zwliu <zhiwei.liu@avepoint.com>
Co-authored-by: tamilmani1989 <tamilmani1989@gmail.com>
* write to temp file and move to state file
* fixed memleak and other issues
* call windows replace function with MOVEFILE_WRITE_THROUGH flag
* moved few functions to platform package
* moved test files to correct dir
* addressed comments
* added config option for disabling iptable lock
* added log for iptable and ebtable version
* moved logging dependency package details to platform specific file
* added removeorphanlockfile function
* remove lock file if process holding that exited
* addressed comments
* addressed comments and added a condition to check get process cmd is supported
* Addressed comments
fixed trim line ending
* updated log
* configure dns server on azure bridge for ubuntu versions > 18. Moved hns related apis from platform package to hsnclient package
* read dns server from interface instead of file and fixed few issues
* renturn error on fail to configure dns
* added unitest and fixed an issue in ReadFileByLines method
* added a UT
* addressed comments and added few tests to get code coverage
* confiure dns for ubuntu17 also
* corrected typo error of filename
* Add option in CNS to pre-provision hns network
Add a commandline option in CNS to pre-provision hns network.
The commandline option take the type of the network that needs
pre-provisioning. This allows orchestrators to start CNS with this
option so that the VM network blip / disconnect is avoided when
calling cni add the very first time.
* Adding telemetry report functions for DNC.
* Addressing Yongli's suggestions.
* commit to switch branches
* Adding some changes to npm due to telemetry change.
* Modifying tests for interface reports...
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.