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

85 Коммитов

Автор SHA1 Сообщение Дата
Alexander 3e161f00bf
chore: remove cnm code (#2906)
* remove cnm code

* remove cnm refs in docs, comments, cns args, and makefile

* remove cns ipamclient as it uses cnm

* remove cns ipam client consts
2024-08-24 02:45:06 +00:00
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
Jackie Luc de225e4d34
feat: add mTLS to CNS (#2751)
* feat: add UseMTLS config

* feat: add mTLS auth for CNS

* test: add testdata for mTLS tests

* chore: add logs on TLS config retrieval

* lint: in tests

* refactor: use CNS logger, not ACN logger

* refactor: add guards to mtlsRootCAsFromCertificate and unit tests

* lint: fix lint errors

* test: include HTTP listener tests for when TLS/mTLS is enabled

* chore: add log for stopping the TLS listener

* test: add test helper to create certificates for testing instead of using hardcoded pem file

* test: assert non-TLS service has no TLSSettings

* test: refactor TestMtlsRootCAsFromCertificate to table-based tests

* refactor: pull listener addresses from listener and remove redundant struct field for tls address
2024-06-07 22:26:49 +00:00
Paul Yu be2dcc0324
Start two CNS servers with different handlers (#2650)
* start two cns servers

* fix linter issues

* fix linter issue

* enhance echo server log

* fix Quang's comments

* gofumpt cns service.go

* fix defaultAPIServerAddress

* run servers asynchoronsly

* add server_test.go

* fix UT test

* enhance log

* fix log issue

* fix an issue

* add a check for defaultAPIServerURL

* fix GetOption func

* enhance comments

* fix defaultAPI URL to 127.0.0.1

* fix restapi method in echo server

* remove unnecessary log info

* fix comment1

* fix comments

* add context to control echo server

* fix TM's comments

* do not enable local server if user specifies cnsurl by -c option

* add -p port check when getting nodeURL

* fix comments and use -p select from customer to start local server

* fix a case when customer does not provide -p option

* fix the issue if customer also does not provide -p and -c option

* add UTs to launch server with different combinations

* fix linter issue for UTs

* fix UT linter issues

* UT needs to stop service

* remove duplicated test case

* comments fix

* fix linter issue

* fix Tim's comments

* fix comments

* fix linter issue

* handle type assertion

* Adding cnsURL and cnsPort options to test server

The startService function is a mistake that has been perpetuated through
time and needs to be removed. As a consequence of its existence, it
requires mixing concerns in all tests and stands in the way of
refactoring.

The addition of two type assertion checks caused this function to break,
because the corresponding options were not set in the Service's
configuration. This is a problem in itself--there's no reason the
options should be pulled out of a map[string]interface{}. Given this, we
can just set these two options in startService, committing sins to
offset the ones in service.(*HTTPRestService).Service.Options.

---------

Signed-off-by: Paul Yu <129891899+paulyufan2@users.noreply.github.com>
Co-authored-by: Tim Raymond <traymond@microsoft.com>
2024-04-29 23:16:58 +00:00
Behzad Mirkhanzadeh c4fe3a8fa7
feat: Dev stateless cni (#2276)
* feat: 🌈 StatelessCNI: Adding getEndpoint and UpdateEndpoint API to CNS (#2102)

* Adding getEndpoint and UpdateEndpoint API to CNS with the respective clients in support of stateless CNI.

* Updating the unit tests and address the comments.

* Addressing the comments.

* Addressing the coments regarding CNS support for Stateless CNI

* Adddressing the PR comments

* 🌈 feat: adding flags for stateless cni (#2103)

feat: stateless cni

* 🌈 feat: StatelessCNI: Applying stateless CNI mode changes in network package. (#2197)

* Apllying stateless CNI mode in network package.

* Addresing the commetns.

* feat: create stateless cni binary for swift (#2275)

* enabling CNS telemetry

* Master rebase changes

* CNI Telemetry enabled on CNS

* Stateless CNI changes.

* making change to CNSendpointStorePath

* Updating makefile to avoid creating statless CNI release.

---------

Co-authored-by: Vipul Singh <vipul21sept@gmail.com>
2023-12-12 00:15:54 +00:00
Saksham Mittal c47e538212
Fix endpoints for CNS pull model API calls to DNC (#2297)
fix endpoints for cns pull model api calls to dnc
2023-10-20 15:47:12 -07:00
estebancams 04566d5fca
implement zap for cni (#1933)
* feat: added logger package and replaced old log initialization for the new one

* feat: changed all log lines to new zap logger

* fix: typo

* Update azure-ipam/logger/logger.go

Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>

* fix: adding constants to describe logger rotations constraints

* Renamed logger New method

* Replaced logAndSend method by log 1st and send then so we can use zap fields

* minor fixes

* added logger init for tests

* replaced Any by Error

* gci ipam_test

* fixed govet errors

* moved component to a zap field

* fixed linit issues

* added log mock

* fix: gci

* fix: added context for logger teardown

* Update cni/log/logger.go

Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>

* moved logger init mock function

* fix: lint findings

---------

Co-authored-by: Esteban Capillo <estebancams@microsoft.com>
Co-authored-by: Timothy J. Raymond <timraymond@users.noreply.github.com>
Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
2023-07-03 12:01:47 -07:00
Matthew Long 36757fefc2
feat: allow the CNI conflist generation settings to be configured via… (#1765)
* feat: allow the CNI conflist generation settings to be configured via cmd line args

* make env var opt-in
2023-02-07 01:30:22 +00:00
Hunter Gregory e3ffab843d
test: [WIN-NPM] dataplane test framework (#1652)
* wip with StrictlyHasSetPolicies approach

* better approaching of getting all set policies

* wip for rigorous win dp UTs

* marshal setpolicies in hns mock and dont short circuit in UTs

* policy stuff and update test cases

* marshal ACLs in hns mock

* more UTs and minor refinements

* option to apply dp or not

* address cmp.Equal and t.Helper comments

* dpEvent returns error and better defined concurrency

* remove unnecessary logic in concurrent test code

* approach #3 emulating cyclonus

* namespace method for podmetadata

* refactor Action structure and TestCase wait group behavior

* hnsactions and renaming a file

* refactor to Serial and ThreadedTestCase structs, and move files to dp pkg

* hns latency hard coded to be the same for all threaded test cases

* fix build error after rebasing

* export fake hns network id

* address comments on multierr and terminology

* add comment about pod metadata in controller

* pod update and delete actions

* move ApplyDPAction to top

* namespace actions and rename some fields of UpdatePod

* adding code comments

* reconcile action

* fix bug in key-val ipsets

* implement all previous test cases

* fix incorrect error wrapping in dataplane.go

* multi-job tests are working. updated terminology from routine to job

* MultiErrManager instead of dependency for multierr

* return to the channel approach for multierr, now using FailNow instead of asserting on channel length

* fix some lints

* fix more lints
2022-10-31 11:20:39 -05:00
Mathew Merrick 80162b02e3
run Windows UT's (#1554)
* run windows UT's

* container image

* remove container

* coverage

* run windows UT's

* container image

* remove container

* coverage

* fix UTs round 1

* passing UTs for policies pkg

* use canary pool

* remove bash from windows

* fixed unit test

* added skip for windows dp translate policy tests

* lint updates and remove dataplane_windows_test.go

* updated failing tests

* fix lint issue

* fixed remaining tests

* lint update

* undo last change

* format update

* lint fix

Co-authored-by: Hunter Gregory <hunterlgregory@gmail.com>
Co-authored-by: Vamsi Kalapala <vakr@microsoft.com>
Co-authored-by: CK <ckov931@gmail.com>
Co-authored-by: Cristina Kovacs <99916704+ck319@users.noreply.github.com>
2022-10-20 12:50:28 -07:00
Quang Nguyen 60e5a26565
feat: CNS manages endpoints state for delegate IPAM use case (#1500)
* rebase

* linting

* rebase

* missing if condition for releaseIPConfig

* update azure-cns.yaml and add UTs

* rebase

* update program iptables changes

* linting

* fix broken tests

* fix podinfoprovider returns error when key is not found

* log when no endpoint state exist when reconcilling

* not remove endpoint state file on failure to read in restserver.restoreState()

* addressed comments

* update acn tag

* go get on acn

* addressed comments

Co-authored-by: Evan Baker <rbtr@users.noreply.github.com>
2022-08-23 16:42:40 -07:00
Quang Nguyen c6cafd48f9
Program IPTables SNAT rules in CNS (#1484)
* iptables snat rules in cns

* linting issue

* add cns config option for running delegated ipam

* change cns config option
2022-07-21 23:34:10 +00:00
tamilmani1989 ba3bbe0f26
Remove azure-vnet-telemetry for windows multitenancy (#1430)
* Remove azure-vne-telemetry for windows multitenancy and telemetry service for windows multitenancy will be started from cns.

* start telemetry service from cns

* lint and log fix

* minor change

* addressed comment
2022-07-01 15:09:39 -07:00
Ramiro 69f851a25a
adding a cert refresher construct (#1426) 2022-06-16 23:32:33 +00:00
aegal d52ed96a20
guard against unstructured url forwarding in CNS API's (#1192)
* remove forwarding unstructured urls

* remove forwarding unstructured urls

* addressing feedback

* fix linting issues

* update getncversion test

* fix test issue where nmagent handler returns 500

* update for linter

* address comments

* small liniter changes

* quick linting changes

* lint

* use gofumpt instead of gofmt

* ignore line count
2022-02-01 15:13:44 -08:00
Paul Johnston 6d208e9762
Cns windows aks (#1059)
* chore: add in some functionality for CNS on windows host process pods
2021-11-22 09:23:01 -08:00
Vamsi Kalapala ca3457e5ee
fix: [NPM] adding fixes to windows DP after first run (#1100)
* [NPM] Expanding HNS fake usage with internal state

* adding some test cases for windows DP

* adding some test cases for windows DP

* Correcting some issues with windows DP

* Splitting each modify call into two,  one for 1st level sets and another for nested sets

* Fixing a build issue in linux

* Enhancing windows ipset tests

* Adding ipset mgr windows tests

* fixing a build issue

* Adding in ACL verify code

* addressing some lint issues

* addressing some lint issues

* removing apply ipset in generic ipsetMgr tests

* fixing a build issue with windows

* fixing windows build issue
2021-11-19 14:57:38 -08:00
Eng Zer Jun e812bc82b8
refactor: move from io/ioutil to io and os packages (#1096)
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>
2021-11-17 16:31:42 -06:00
Hunter Gregory 17ed0b83fa
feat: [NPM] ipset save before restoring and fix grep UTs (#1085)
* use ipset save to update members and update error handling logic for ipsets to skip previously run lines. Also update some logging for iptables chain management

* remove unused code

* add comment block describing high level ipset restore logic

* fix bug in piping to grep. need to add pipe errors for fexec UTs so that we dont revert on dataplane UTs

* grep for npm sets working for ipsets save, but this breaks DP UTs

* VerifyCalls method for mock ioshim

* add ability to unit test piped commands

* update logging

* UTs for piping a command to grep

* grep for npm sets in ipset save, verify number of calls in UTs, and update ApplyIPSets test calls for dataplane UTs

* update comments based on PR suggestions

* addressing comments

* remove out-of-scope policy changes for this PR

* rename restore file creator files

* FIXME: setting v2 controllers toggle to true to create an image in pipeline

* Revert "FIXME: setting v2 controllers toggle to true to create an image in pipeline"

This reverts commit 31148c3034.

* wrap errors
2021-11-15 17:47:05 -08:00
Vamsi Kalapala dfc70acbd9
[NPM] Adding prefixes to IPSets in dataplane (#1047)
* [NPM] Adding prefixes to IPSets in dataplane

* Correcting a linting issue

* Using the correct case for metadata

* Adding IOShim for both windows and linux

* splitting ioshim for each os

* correcting a import error

* correcting some mistakes

* Adding tests for policies in Dp

* fixing a testname

* Updating the dataplane mock file

* removing dataplane mocks from dataplane tests as their scope is controllers
2021-10-11 13:11:45 -07:00
Mathew Merrick f9b65e95d2
test: add multitenancy ut's (#1018)
* multitenancy minor refactor, and add ut's
2021-09-21 09:11:58 -07: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
Evan Baker 26bd9aadc1
enable prometheus metrics in cns (#972)
* gofumpt

* fix unsafe map access

* add metric wrapper to restserver IP endpoints

* add metrics to ip churn

* add metrics for ip pool scaling latency

* address review comments

* make MetricsBindAddress configurable

* use ifaces and test alloc metrics

* rename alloc to pool and update usage of scaler metric

* address review comments
2021-08-27 15:38:17 -07:00
Evan Baker 0bcb0d0da5
chore: migrate from exit/err channels to context (#900)
* chore: migrate from exit/err channels to context

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>

* pass context instead of storing

* rename controller packages

* comment init
2021-06-23 10:01:13 -07:00
tamilmani1989 98f838ef1b
Write to intermediate file before moving to state file (#755)
* 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
2021-01-07 17:43:33 -08:00
Vamsi Kalapala 52b030f41d
Merge branch 'master' into vakr/cns_lb_mnat 2020-11-11 16:43:58 -08:00
aegal 13677e6092
changes to support http and https for CNS (#717)
* changes to support http and https for CNS

* correct small typo

* address feedback

* address feedback

* rename file

* small fix

* small fix

* fixing issue with cert not found
2020-11-06 09:51:30 -08:00
Mathew Merrick c2b8caeb73
Adds debug commands to CNS binary with debug API (#650)
* feat: add cns debug api and cli

* update tests

* fixed nits

* feedback

* remove merge artifacts

* rebase artifacts

* fix missing variable rename

* add support for pending release

* feedback

* connect to localhost
2020-11-02 09:53:35 -08:00
vakr 7ed7e9179e Covering pull model for DNC-CNS nmAgentSupportedApis list 2020-09-29 12:16:32 -07:00
Jaeryn dd7abd1627
CNS to DNC communication in Managed DNC (#574)
* initial changes for CNS->DNC support

* Adding changes for CNS to be compatible with managed DNC (reverse communication channel)

* adding NC version validation with respective NMA

* return errors for respective NC based on orchestrator context from CNI

* add nc version check via NMA

* adding logic to SyncNodeStatus and check if NCWaitingForUpdate for CniADD and CnsAttach calls

* addressing most of ashvin's comments

* adding managed config

* fat rebase

* addressing some comments

* slight optimizations...

* adding channel mode instead of managed bool

* set err in register node so that we keep looping

* addressing ashvin's comments

* fix test

* removing swift prefix mods for mdnc

* addressing tamanoha's comments

Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2020-07-23 13:03:10 -07:00
vivekagg-MSFT 4b1ed1e384
Explicitly add content type (#561) 2020-05-17 12:01:20 -07:00
Mathew Merrick d2ba9bb2f3
IPv6 Node IPAM (#532)
* switch to go mod

* pull node spec from apiserver

* carve v6 addresses

* address pool

* update go mod vendor

* build image

* build image

* build image

* separate go mod for npm

* add manager ipv6 ipam test

* added comments and addressed feedback

* address comments

* address comments

* address comments

* check if loaded

* address comments

* update pipeline

* update pipeline

* update test message

Co-authored-by: Ubuntu <azureuser@k8s-agentpool1-23761303-0.2w0jm2xwiahebmp33klngrlq1d.xx.internal.cloudapp.net>
2020-04-02 11:01:05 -07:00
Paul Johnston 17e2c7d404
Adding network monitor capabilities for prerouting and postrouting ebrules (#527)
* About to take debugging comments out

* Removed debugging statements and tested again

* Removed more debugging statements and unused method

* Made changes suggested by Tamilmani, tested again.

* Made spacing changes suggested by Tamilmani

* Triggering new tests to run
2020-03-18 14:02:31 -07:00
Ashutosh Dubey c2665f3e4a
adds environment flag fileIPAM (#482)
* adds environment flag fileIPAM

* "creating fileIpamSource once"

* Update fileIpam.go

well spaced if-1

* Update fileIpam_test.go

well spaced if-2

* comment improved

* smarter code structure
2020-02-06 14:59:56 -08:00
Ashvin Deodhar aeacc60dfe
Fix the code used to get the working directory (#484)
Use os.Executable to get the directory of the exe
2020-01-30 22:34:17 -08:00
tamilmani1989 2d619b78fe
AppInsightTelemetry support for CNI (#458)
* Added AITelemetry support for CNI

* added new files

* added other configs in config file

* fixed ut

* updated disableall similar to cns

* added container name to report

* addressed review comments

* addressed review comments

* added check for azure environment

* added log

* close log handle in unit test

* addressed review comments

* addressed review comments

* fixed a condition

* keep the netagent channel for logs

* fixed error

* addressed review comments
2020-01-14 14:53:24 -08:00
vivekagg-MSFT b4f9840815
Store file override (#452) 2019-12-05 14:01:00 -08:00
Ashvin Deodhar cd236e1f59
Publish/Unpublish Network Containers via CNS (#430)
Expose 2 APIs to publish and unpublish network containers from CNS.
a. PublishNetworkContainer
b. UnpublishNetworkContainer

DNC calls CNS to publish and unpublish the network containers.
2019-11-13 18:07:36 -08:00
Ashvin Deodhar 84fb35b545
Add Host NC communication support in Windows with HnsV2 (#424)
This PR adds support for host NC bidirectional communication with windows HnsV2. This is supported in multitenant scenario only. AllowHostToNCCommunication and AllowNCToHostCommunication flags are used to enable Host to NC and NC to host communication respectively.
2019-10-18 13:12:03 -07:00
tamilmani1989 e0605e90f6
added application insights telemetry package to send metrics and logs (#421)
* added application insights telemetry package to send metrics and logs to appinsights

* moved a function common to both packages
acquired a lock before writing to file

* added read write lock as per chandan comment. Addressed jaeryn comments

* fixed telemetry unit test

* defined interface and added appinsights package as vendor to acn

* added vendor package.go(appinsights)

* dependencies of appinsights

* added AI dependencies

* updated unit tests

* addressed review comments
2019-10-16 13:08:42 -07:00
tamilmani1989 59969fec20
Fix for CNI lock timedout issue. (#382)
* Fix for CNI lock timedout issue.

* removed duplicate log

* addressed review comments
2019-07-31 11:40:51 -07:00
Ashvin Deodhar c7c3dd9d1c
CNS: Do not start CNM by default (#381)
CNM starts by default when CNS starts. This change prevents CNM
from starting by default. -startcnm command line option can be used
to start CNM if needed.
2019-07-25 09:03:31 -07:00
tamilmani1989 a75fbe77b3 Set dns server on azure bridge for ubuntu version >= 17 (#345)
* 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
2019-04-30 16:27:48 -07:00
Ashvin Deodhar 2dbc856ca1
Add option in CNS to pre-provision hns network (#323)
* 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.
2019-04-15 13:10:23 -07:00
jaer-tsun 4a595724e1
Fix Attach/Detach NC from Network Calls (#309)
* Pass CNS server url when invoking CNI during add/del call in windows and update call in linux.

* Addressing Tamilmani's comments.

* Forgot to fix linux side of networkcontainers_linux.go

* Enabling exact match for pod name in attach/detach containertonetwork APIs.

* Returning the correct error when invoking Cni.

* Checking if orchestrator is Batch for attach/detach network calls.

* Moving similar lines for NewNetPluginConfiguration into a single function.

* Removing CNI configuration manipulation in CNS.

* Addressing Tamilmani's comments.

* Addressing Vivek's comments.

* Addressing Tamilmani's comments.

* Addressing Vivek's comment.

* Addressing Tamilmani's comments.
2019-04-08 16:41:33 -07:00
jaer-tsun 3043dc9736
CNS to start telemetry process and connect to it (#324)
* Spawn telemetry buffer in a separate process instead of goroutine.

* Adding an option to disable telemetry.

* Addressing some of Tamilmani's comments.
2019-04-08 16:20:05 -07:00
tamilmani1989 a11d5104a0
Config support for Telemetry service (#317)
* 1. Start telemetry service as separate process for all components cns/networkmonitor
2. Added telemetry config through which we can configure reportTohost interval
3. Added unit tests for changes

* added new files for telemetry testing

* added tests for invalid cases

* updated with dummy subid
2019-03-25 14:12:32 -07:00
jaer-tsun 67debca901
Add ability in CNS to setup networking for a docker container (#298)
* Limiting the size of our buffered payload to ~2MB

* CNI Update operation support

* Adding APIs for attach/detach network container to/from network.

* Updating new apis.

* Addressing Tamilmani's review/comments.

* Renaming Batch APIs and Request members for better clarity.

* Adding check for pluginsSection length before accessing element.

* Renaming ConfigureNetworkContainerNetworkingRequest to ConfigureContainerNetworkRequest.

* Adding default k8s cni paths for windows.

* Adding AzureFirstParty orchestrator type and Basic container type.

* Addressing Sushant's comments.
2019-02-26 16:04:27 -08:00
Tamilmani Manoharan 8bdc193f0c removed blank line 2019-02-05 15:28:39 -08:00
Tamilmani Manoharan bff9bed007 addressed review comments and modified unit tests 2019-02-05 15:14:44 -08:00