# No VN\_MAD in template (when reserve ip)

**URL:** <https://forum.opennebula.io/t/no-vn-mad-in-template-when-reserve-ip/5947>\
**Category:** Product Support\
**Created:** [April 24, 2018, 3:30pm UTC](https://forum.opennebula.io/t/no-vn-mad-in-template-when-reserve-ip/5947 "2018-04-24T15:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfeijoo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alfeijoo/32/8586_2.png) [@alfeijoo](https://forum.opennebula.io/u/alfeijoo)\
**Post date:** [April 24, 2018, 3:30pm UTC](https://forum.opennebula.io/t/no-vn-mad-in-template-when-reserve-ip/5947/1 "2018-04-24T15:30:02Z")

</div>

Hi.

We updated Opennebula to last stable version…

now, we cant reserve ip or create reservations… because we found an error after that…

“[one.vn.reserve] No VN\_MAD in template for Virtual Network.”

At the beginning I thought it would be a failure only at sunstone… but thats not correct, the error persist using onevnet.

for example: onevnet show 14 (only header)

```
<VNET>
  <ID>14</ID>
  <UID>0</UID>
  <GID>0</GID>
  <UNAME>oneadmin</UNAME>
  <GNAME>oneadmin</GNAME>
  <NAME>Private-10.112.0.xxx</NAME>
  <PERMISSIONS>
    <OWNER_U>1</OWNER_U>
    <OWNER_M>1</OWNER_M>
    <OWNER_A>0</OWNER_A>
    <GROUP_U>0</GROUP_U>
    <GROUP_M>0</GROUP_M>
    <GROUP_A>0</GROUP_A>
    <OTHER_U>0</OTHER_U>
    <OTHER_M>0</OTHER_M>
    <OTHER_A>0</OTHER_A>
  </PERMISSIONS>
  <CLUSTERS>
    <ID>0</ID>
  </CLUSTERS>
  <BRIDGE><![CDATA[virbrPRIVATE]]></BRIDGE>
  <PARENT_NETWORK_ID/>
  <VN_MAD><![CDATA[dummy]]></VN_MAD>
  <PHYDEV/>
  <VLAN_ID/>
  <VLAN_ID_AUTOMATIC>0</VLAN_ID_AUTOMATIC>
  <USED_LEASES>8</USED_LEASES>
  <VROUTERS/>
  <TEMPLATE>
    <BRIDGE><![CDATA[virbrPRIVATE]]></BRIDGE>
    <DESCRIPTION><![CDATA[red 112 uso para sistemas y comunicacion nodos master.]]></DESCRIPTION>
    <DNS><![CDATA[193.144.34.209 193.144.33.38]]></DNS>
    <GATEWAY><![CDATA[10.112.0.1]]></GATEWAY>
    <NETWORK_ADDRESS><![CDATA[10.112.0.0]]></NETWORK_ADDRESS>
    <NETWORK_MASK><![CDATA[255.255.0.0]]></NETWORK_MASK>
    <PHYDEV><![CDATA[]]></PHYDEV>
    <SECURITY_GROUPS><![CDATA[0]]></SECURITY_GROUPS>
    <VLAN_ID><![CDATA[]]></VLAN_ID>
  </TEMPLATE>

```

i can look the vn\_mad set to dummy… well i try to create the reserve like that.

> onevnet reserve 14 -a 1 -s 1 -i 10.112.0.IP -n alfeijoo-devel-10.112.0.IP

And have the same error…

[one.vn.reserve] No VN\_MAD in template for Virtual Network.

and oned.log

> Tue Apr 24 17:13:39 2018 [Z0][ReM][D]: Req:6192 UID:0 one.vn.info invoked , 14  
> Tue Apr 24 17:13:39 2018 [Z0][ReM][D]: Req:6192 UID:0 one.vn.info result SUCCESS, “14\<UI…”  
> Tue Apr 24 17:13:39 2018 [Z0][ReM][D]: Req:5392 UID:0 one.vn.reserve invoked , 14, “SIZE = 1…”  
> Tue Apr 24 17:13:39 2018 [Z0][VNM][E]: No VN\_MAD in template for Virtual Network.  
> Tue Apr 24 17:13:39 2018 [Z0][ReM][E]: Req:5392 UID:0 one.vn.reserve result FAILURE [one.vn.reserve] No VN\_MAD in template for Virtual Network.

we can live without pci assign using sunstone… but not without reservations…

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [May 4, 2018, 8:01am UTC](https://forum.opennebula.io/t/no-vn-mad-in-template-when-reserve-ip/5947/2 "2018-05-04T08:01:49Z")

</div>

It looks like for some reason the upgrade process didn’t set the VN\_MAD. Please update your vnets to set the proper VN\_MAD in each of them.

---

<div class="post-metadata">

**Author:** ![alfeijoo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alfeijoo/32/8586_2.png) [@alfeijoo](https://forum.opennebula.io/u/alfeijoo)\
**Post date:** [May 4, 2018, 9:31am UTC](https://forum.opennebula.io/t/no-vn-mad-in-template-when-reserve-ip/5947/3 "2018-05-04T09:31:28Z")

</div>

Hi Tino.

Did you said that i need to set manually the vn\_mad=dummy as a atribute? or directly in the database?

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [May 4, 2018, 9:33am UTC](https://forum.opennebula.io/t/no-vn-mad-in-template-when-reserve-ip/5947/4 "2018-05-04T09:33:46Z")

</div>

You can use a “onevnet update” to add the VN\_MAD.
