]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: allow setting peer address in <ip> element of <interface>
authorVasiliy Tolstov <v.tolstov@selfip.ru>
Mon, 4 Apr 2016 21:00:03 +0000 (21:00 +0000)
committerLaine Stump <laine@laine.org>
Sat, 2 Jul 2016 01:13:30 +0000 (21:13 -0400)
commitb81cf13e66fad46432313e802975f0cdf1c07ef0
tree8618065c0ad188a3509c3248be5d42856137947d
parent95309424baac8749416d6c33b4d4727a1557bd48
conf: allow setting peer address in <ip> element of <interface>

The peer attribute is used to set the property of the same name in the
interface IP info:

  <interface type='ethernet'>
    ...
    <ip family='ipv4' address='192.168.122.5'
        prefix='32' peer='192.168.122.6'/>
    ...
  </interface>

Note that this element is used to set the IP information on the
*guest* side interface, not the host side interface - that will be
supported in an upcoming patch.

(This patch now has quite a history: it was originally pushed in
commit 690969af, which was subsequently reverted in commit 1d14b13f,
then reworked and pushed (along with a lot of other related/supporting
patches) in commit 93135abf1; however *that* commit had been
accidentally pushed during dev. freeze for release 2.0.0, so it was
again reverted in commit f6acf039f0).

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Signed-off-by: Laine Stump <laine@laine.org>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/util/virnetdevip.h