Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
Added support for explicit mac addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidj-nefeli authored May 17, 2019
1 parent dea3899 commit a516d3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/vm-template.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
{% elif int['portgroup'] is defined %}
<source {{ int.type }}='{{ int.source }}' portgroup='{{ int['portgroup'] }}'/>
{% endif %}
{% if int['mac'] is defined %}
<mac address='{{ int['mac'] }}' />
{% endif %}
{% if int['slot'] is defined %}
<address type='pci' domain='0x0000' bus='0x00' slot='0x{{ "%.2x" | format(int['slot']|int) }}' function='0x0'/>
{% endif %}
Expand Down

0 comments on commit a516d3e

Please sign in to comment.