From edd1295e1da6bfe8e4e257e5fbfad71ac0bf7c87 Mon Sep 17 00:00:00 2001
From: Peter Krempa
Date: Tue, 6 Sep 2011 16:08:15 +0800
Subject: [PATCH] link-state: conf: Add element to XML for controling link
state
A new element is introduced to XML that allows to control
state of virtual network interfaces in hypervisors.
Live modification of the link state allows networking tools
propagate topology changes to guest OS or testing of
scenarios in complex (virtual) networks.
This patch adds elements to XML grammars and parsing and generating
code.
---
docs/formatdomain.html.in | 21 +++++++++++++++++++++
docs/schemas/network.rng | 11 +++++++++++
src/conf/domain_conf.c | 24 ++++++++++++++++++++++++
src/conf/domain_conf.h | 11 +++++++++++
4 files changed, 67 insertions(+)
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 54e81b0d9e..0a7abafac4 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -2131,6 +2131,27 @@ qemu-kvm -net nic,model=? /dev/null
Since 0.9.4
+ This element provides means of setting state of the virtual network link.
+ Possible values for attribute state are up and
+ down. If down is specified as the value, the interface
+ behaves as if it had the network cable disconnected. Default behavior if this
+ element is unspecified is to have the link state up.
+ Since 0.9.5
+