projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2635ac
)
ovn-sbctl: Make 'chassis-del' delete all encaps.
author
Alex Wang
<alexw@nicira.com>
Sun, 16 Aug 2015 06:52:42 +0000
(23:52 -0700)
committer
Alex Wang
<alexw@nicira.com>
Sun, 16 Aug 2015 23:27:38 +0000
(16:27 -0700)
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
ovn/utilities/ovn-sbctl.c
patch
|
blob
|
history
diff --git
a/ovn/utilities/ovn-sbctl.c
b/ovn/utilities/ovn-sbctl.c
index
8887c95
..
c69800a
100644
(file)
--- a/
ovn/utilities/ovn-sbctl.c
+++ b/
ovn/utilities/ovn-sbctl.c
@@
-548,6
+548,11
@@
cmd_chassis_del(struct ctl_context *ctx)
sbctl_ch = find_chassis(sbctl_ctx, ctx->argv[1], must_exist);
if (sbctl_ch) {
if (sbctl_ch->ch_cfg) {
+ size_t i;
+
+ for (i = 0; i < sbctl_ch->ch_cfg->n_encaps; i++) {
+ sbrec_encap_delete(sbctl_ch->ch_cfg->encaps[i]);
+ }
sbrec_chassis_delete(sbctl_ch->ch_cfg);
}
shash_find_and_delete(&sbctl_ctx->chassis, ctx->argv[1]);