From ecdb02164c6255814a0d203ece38e2bfe2ff2275 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 30 Jul 2019 15:04:11 +0200 Subject: [PATCH] graph updates Signed-off-by: Nico Schottelius --- ucloud-networking.dot | 31 +++++++++++++++++++++++++++++-- ucloud-vm-states.dot | 5 +++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/ucloud-networking.dot b/ucloud-networking.dot index f0cca40..f29582c 100644 --- a/ucloud-networking.dot +++ b/ucloud-networking.dot @@ -3,7 +3,34 @@ digraph G { ucloud_router [shape=box]; ucloud_nat64 [shape=box]; - ucloud_api -> REQUEST_SLASH_64 [label="Requested by user" style="dotted"]; - ucloud_router -> HAS_SLASH_64 [label="Requested by user" style="dotted"]; + { + rank = same; + ucloud_api; + ucloud_router; + ucloud_nat64; + } + + ucloud_api -> REQUEST_IPV6_SLASH_64 [label="Requested by user" style="dotted"]; + ucloud_api -> REQUEST_IPV4_ADDRESS [label="Requested by user" style="dotted"]; + ucloud_router -> HAS_IPV6_SLASH_64 [label="Adding route" style="dotted"]; + ucloud_nat64 -> HAS_IPV4_ADDRESS [label="Adding NAT64" style="dotted"]; + ucloud_router -> DELETE_IPV6_SLASH_64 [label="Deleting route" style="dotted"]; + ucloud_nat64 -> DELETE_IPV4_ADDRESS [label="Removing NAT64" style="dotted"]; + + ERROR; + ERROR -> DEFAULT; + + DEFAULT -> REQUEST_IPV6_SLASH_64; + + REQUEST_IPV6_SLASH_64 -> HAS_IPV6_SLASH_64 [label="If another /64 can be routed"]; + REQUEST_IPV6_SLASH_64 -> ERROR [label="If no /64 can be routed"]; + + DEFAULT -> REQUEST_IPV4_ADDRESS; + REQUEST_IPV4_ADDRESS -> HAS_IPV4_ADDRESS; + REQUEST_IPV4_ADDRESS -> ERROR [label="If IPv4 address can be added"]; + + + HAS_IPV6_SLASH_64 -> DELETE_IPV6_SLASH_64 -> DEFAULT; + HAS_IPV4_ADDRESS -> DELETE_IPV4_ADDRESS -> DEFAULT; } diff --git a/ucloud-vm-states.dot b/ucloud-vm-states.dot index 2059afe..8c3c2f8 100644 --- a/ucloud-vm-states.dot +++ b/ucloud-vm-states.dot @@ -9,11 +9,12 @@ digraph G { ucloud_api -> DELETED [label="Requested by user" style="dotted"]; ucloud_vm -> RUNNING [style="dotted"]; - { rank = same; + { + rank = same; ucloud_scheduler; ucloud_api; ucloud_vm; - } + } NEW -> SCHEDULED_FOR_DEPLOY [label="ucloud_scheduler selects hosts"]; SCHEDULED_FOR_DEPLOY -> RUNNING [label="ucloud_vm starts VM"];