From 6b450c0bb8c4ff04d62f9bed3fbefd000ca57c7d Mon Sep 17 00:00:00 2001 From: Peng Tao Date: Fri, 17 Aug 2018 16:03:34 +0800 Subject: [PATCH] uml: add txt source of network hotplug uml So that anyone can paste it into https://www.planttext.com/ to modify the png file. Signed-off-by: Peng Tao --- .../kata-containers-network-hotplug-uml.txt | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 arch-images/kata-containers-network-hotplug-uml.txt diff --git a/arch-images/kata-containers-network-hotplug-uml.txt b/arch-images/kata-containers-network-hotplug-uml.txt new file mode 100644 index 0000000000..6f12169184 --- /dev/null +++ b/arch-images/kata-containers-network-hotplug-uml.txt @@ -0,0 +1,47 @@ +@startuml + +User->CLI: network add-interface +CLI->virtcontainers: AddInterface +virtcontainers->QEMU:QMP-hot-add-network +virtcontainers->agent:UpdateInterface +note right +the agent's UpdateInterface code will need to be augmented +to have a timeout/wait associated with this for the network +device to appear (ie, wait for qmp to complete) +end note +agent->User: err, interface detail + +User->CLI: network del-interface +CLI->virtcontainers: DeleteInterface +note right +There will be no call to the agent. We rely on guest kernel +to clean up any state associated with the interface. +end note +virtcontainers->QEMU:QMP-hot-delete-network +virtcontainers->User: err, interface detail + +User->CLI: network list-interface +CLI->virtcontainers: ListInterfaces +virtcontainers->agent:ListInterfaces +agent->User: err, list of interface details + +User->CLI: network update-routes +CLI->virtcontainers: UpdateRoutes +note right +routes are handled in a 'one shot' basis, +setting all of the routes for the network. This needs to +be called after interfaces are added, and should be called +after interfaces are removed. It should be fine to call once +after adding all of the expected interfaces. If you know all +the resulting routes, simply calling set routes with the +complete list should suffice. +end note +virtcontainers->agent:UpdateRoutes +agent->User: err, list of routes + +User->CLI: network list-routes +CLI->virtcontainers: ListRoutes +virtcontainers->agent:ListRoutes +agent->User: err, list of routes + +@enduml