Add gateway_ip to nets DB table
- Add gateway_ip column to net table at DB
- Save and retrive gw ip during net creation and vm launching process
Change-Id: I93c5339aa61ded3631d34a90018bd67525b49ab1
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
diff --git a/ovim.py b/ovim.py
index 0b252ee..286a4d0 100644
--- a/ovim.py
+++ b/ovim.py
@@ -396,7 +396,7 @@
dhcp_host.ssh_connect()
return dhcp_host
- def launch_dhcp_server(self, vlan, first_ip, last_ip, cidr):
+ def launch_dhcp_server(self, vlan, first_ip, last_ip, cidr, gateway):
"""
Launch a dhcpserver base on dnsmasq attached to the net base on vlan id across the the openvim computes
:param vlan: vlan identifier
@@ -414,6 +414,6 @@
controller_host = self.get_dhcp_controller()
controller_host.create_linux_bridge(vlan)
controller_host.create_dhcp_interfaces(vlan, first_ip, dhcp_netmask)
- controller_host.launch_dhcp_server(vlan, ip_range, dhcp_netmask, dhcp_path)
+ controller_host.launch_dhcp_server(vlan, ip_range, dhcp_netmask, dhcp_path, gateway)