Handle bridge name correctly.
This commit is contained in:
parent
080156157f
commit
23ca2e0e43
3 changed files with 4 additions and 2 deletions
|
|
@ -123,7 +123,8 @@
|
|||
<#list vm.network![] as itf>
|
||||
<#switch itf.type!"tap">
|
||||
<#case "tap">
|
||||
- [ "-netdev", "bridge,id=hostnet${ nwCounter }" ]
|
||||
- [ "-netdev", "bridge,id=hostnet${ nwCounter }\
|
||||
<#if itf.bridge??>,br=${ itf.bridge }</#if>" ]
|
||||
- [ "-device", "${ itf.device },netdev=hostnet${ nwCounter }\
|
||||
<#if itf.mac??>,mac=${ itf.mac }</#if>" ]
|
||||
<#break>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue