Update libvirt config syntax for new version of driver domain patches

Finally accepted patches uses different syntax: <backenddomain name=.../> tag
instead of <source domain=.../>.
This commit is contained in:
Marek Marczykowski-Górecki 2015-03-21 21:12:48 +01:00
parent 246d0f4609
commit 4dfb629dd8
2 changed files with 2 additions and 2 deletions

View File

@ -1016,7 +1016,7 @@ class QubesVm(object):
" <mac address='{mac}'/>\n" \
" <ip address='{ip}'/>\n" \
" <script path='vif-route-qubes'/>\n" \
" <source domain='{backend}'/>\n" \
" <backenddomain name='{backend}'/>\n" \
" </interface>\n"
return template.format(ip=ip, mac=mac, backend=backend)

View File

@ -63,7 +63,7 @@ class QubesXenVmStorage(QubesVmStorage):
if not rw:
params += " <readonly/>\n"
if domain:
params += " <domain name='%s'/>\n" % domain
params += " <backenddomain name='%s'/>\n" % domain
if script:
params += " <script path='%s'/>\n" % script
return template.format(path=path, vdev=vdev, type=type,