On 08/19/2014 04:59 AM, Li Yang wrote:
net-undefine doesn't only undefine an inactive network,
but also an active network(persistent), it just cannot
undefine a transient network.
Signed-off-by: Li Yang <liyang.fnst(a)cn.fujitsu.com>
---
tools/virsh-network.c | 4 ++--
tools/virsh.pod | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index fc08b09..578abe0 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -798,10 +798,10 @@ cmdNetworkStart(vshControl *ctl, const vshCmd *cmd)
*/
static const vshCmdInfo info_network_undefine[] = {
{.name = "help",
- .data = N_("undefine an inactive network")
+ .data = N_("undefine a persistent network")
},
{.name = "desc",
- .data = N_("Undefine the configuration for an inactive network.")
+ .data = N_("Undefine the configuration for a persistent network.")
},
{.name = NULL}
};
diff --git a/tools/virsh.pod b/tools/virsh.pod
index f07deec..9efb920 100644
--- a/tools/virsh.pod
+++ b/tools/virsh.pod
@@ -2557,7 +2557,8 @@ Start a (previously defined) inactive network.
=item B<net-undefine> I<network>
-Undefine the configuration for an inactive network.
+Undefine the configuration for a persistent network. If the network is active,
+make it to be transient.
s/to be //
ACK and pushed now.
Jan