-
Notifications
You must be signed in to change notification settings - Fork 374
Conversation
996402e
to
1535dda
Compare
Codecov Report
@@ Coverage Diff @@
## master #287 +/- ##
=========================================
- Coverage 64.76% 64.7% -0.06%
=========================================
Files 83 84 +1
Lines 9178 9551 +373
=========================================
+ Hits 5944 6180 +236
- Misses 2620 2723 +103
- Partials 614 648 +34 |
c26214a
to
82dd787
Compare
@sboeuf - can you PTAL? |
3b02c60
to
685aa44
Compare
Generally looks good. Can you please add cli side change so that these APIs are actually used and tested? |
virtcontainers/agent.go
Outdated
@@ -194,4 +195,13 @@ type agent interface { | |||
// This function should be called after hot adding vCPUs or Memory. | |||
// cpus specifies the number of CPUs that were added and the agent should online | |||
onlineCPUMem(cpus uint32) error | |||
|
|||
// hotPlugNetwork will tell the agent to add a new nic for an existed Sandbox. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/hotPlugNetwork/plugRoutes
virtcontainers/agent.go
Outdated
// hotPlugNetwork will tell the agent to add a new nic for an existed Sandbox. | ||
hotPlugNetwork(sandbox *Sandbox, endpoint Endpoint) error | ||
|
||
// hotPlugNetwork will tell the agent to del a new nic for an existed Sandbox. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/hotPlugNetwork/hotPullNetwork
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. Fixed
To support tap network hotplug. Implement netdev_add, netdev_del and corresponding device_add QMP commands. Full list in govmm: 10efa84 qemu/qmp: add function for hotplug network by fds 80ed88e qemu/qmp: implement function to hotplug serial ports ca46f21 qemu/qmp: implement function to hotplug character devices 03f1a1c qemu/qmp: implement getfd 84b212f qemu: add vhostfd and disable-modern to vsock hotplug 12dfa87 qemu/qmp: implement function for hotplug network 4ca232e qmp_test: Fix Warning and Error level logs 430e72c qemu,qmp: Enable gas security checker ffc06e6 qemu,qmp: Add staticcheck to travis and fix errors Add agent ListInterfaces and ListRoutes APIs. Full list in agent: 7c287c6 agent: add ListInterfaces and ListRoutes rpc Signed-off-by: Ruidong Cao <[email protected]>
Add sandbox hotplug network API to meet design Signed-off-by: Ruidong Cao <[email protected]>
Add update and list commands for notwork hotplug Signed-off-by: Ruidong Cao <[email protected]>
Build succeeded (third-party-check pipeline).
|
LGTM
I think this could make sense :-) @sboeuf |
add UTs for network hotplug related fuctions Fixes kata-containers#113 Signed-off-by: Ruidong Cao <[email protected]>
PSS Measurement: Memory inside container: |
@sboeuf I add some tests. Please check if this is right |
@caoruidong thank you very much! |
Build succeeded (third-party-check pipeline).
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Merging as |
This feature is currently not valid because the pull request 534 is not fully implemented. |
Fixes #113
Refactor generate interface and route, add network hotplug interface
Signed-off-by: Ruidong Cao [email protected]