Skip to content

Conversation

@ashvindeodhar
Copy link
Member

Add a commandline option in CNS to pre-provision hns network.
The commandline option takes the type of the network that needs
pre-provisioning. This allows orchestrators to start CNS with the
option so that the VM network blip / disconnect is avoided when
calling cni add the very first time.

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.
@codecov
Copy link

codecov bot commented Mar 28, 2019

Codecov Report

Merging #323 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #323   +/-   ##
=======================================
  Coverage   45.16%   45.16%           
=======================================
  Files          25       25           
  Lines        3538     3538           
=======================================
  Hits         1598     1598           
  Misses       1685     1685           
  Partials      255      255

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1f804a...b386a64. Read the comment docs.

@ashvindeodhar ashvindeodhar requested a review from jaer-tsun March 28, 2019 20:13
jaer-tsun
jaer-tsun previously approved these changes Mar 28, 2019
Copy link
Contributor

@jaer-tsun jaer-tsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

@jaer-tsun jaer-tsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comments, we can discuss when you're in office

switch r.Method {
case "POST":
service.lock.Lock()
networkInfo, ok := service.state.Networks[req.NetworkName]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will encapsulate this in a function, so that people don't forget to acquire lock.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping it as is. Don't understand the comment. I don't think moving the networkName validity check warrants a new func if that's what you are asking for.

@ashvindeodhar ashvindeodhar dismissed stale reviews from tamilmani1989 and ninzavivek April 15, 2019 20:06

Addressed review comments in the subsequent updates

Copy link
Contributor

@jaer-tsun jaer-tsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm, we will merge some of the functions when you move the code around later on.

@ashvindeodhar ashvindeodhar merged commit 2dbc856 into master Apr 15, 2019
@ashvindeodhar ashvindeodhar deleted the ashvin-cns-create-ext-nw branch May 9, 2019 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants