|
Lines 272-278
Link Here
|
| 272 |
if not GLIUtility.set_ip(net_data[0], net_data[1], net_data[2], net_data[3]): |
272 |
if not GLIUtility.set_ip(net_data[0], net_data[1], net_data[2], net_data[3]): |
| 273 |
raise GLIException("SetIPError", 'fatal', 'configure_networking', "Could not set the IP address!") |
273 |
raise GLIException("SetIPError", 'fatal', 'configure_networking', "Could not set the IP address!") |
| 274 |
|
274 |
|
| 275 |
route = self._configuration.get_default_gateway()[1] |
275 |
route = net_data[4] |
| 276 |
if not GLIUtility.set_default_route(route): |
276 |
if not GLIUtility.set_default_route(route): |
| 277 |
raise GLIException("DefaultRouteError", 'fatal','configure_networking', "Could not set the default route!") |
277 |
raise GLIException("DefaultRouteError", 'fatal','configure_networking', "Could not set the default route!") |
| 278 |
|
278 |
|