summaryrefslogtreecommitdiffstats
path: root/node-admin/scripts
diff options
context:
space:
mode:
authorOyvind Bakksjo <bakksjo@yahoo-inc.com>2016-06-24 14:23:27 +0200
committerOyvind Bakksjo <bakksjo@yahoo-inc.com>2016-06-27 12:44:11 +0200
commitf351873245c19b8b9c3c0638768fd2a741b646c1 (patch)
treead865f714fc97782eeee829f21af8095a31e4f54 /node-admin/scripts
parent4da1d9e6e00cded5f84d485d3f6beddec07dd49b (diff)
Rename variables for consistency.
Diffstat (limited to 'node-admin/scripts')
-rwxr-xr-xnode-admin/scripts/configure-container-networking.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/node-admin/scripts/configure-container-networking.py b/node-admin/scripts/configure-container-networking.py
index fc22d93944d..c5efbe5be0a 100755
--- a/node-admin/scripts/configure-container-networking.py
+++ b/node-admin/scripts/configure-container-networking.py
@@ -336,12 +336,12 @@ elif vm_mode:
else:
# Set up default route/gateway in container.
- default_route = get_default_route(net_namespace=host_ns)
+ host_default_route = get_default_route(net_namespace=host_ns)
- host_default_route_device_index = get_attribute(default_route, 'RTA_OIF')
- host_default_gateway = get_attribute(default_route, 'RTA_GATEWAY')
+ host_default_route_device_index = get_attribute(host_default_route, 'RTA_OIF')
+ host_default_route_gateway = get_attribute(host_default_route, 'RTA_GATEWAY')
if host_device_index_for_container != host_default_route_device_index:
raise RuntimeError("Container's ip address is not on the same network as the host's default route."
" Could not set up default route for the container.")
- container_gateway = host_default_gateway
+ container_gateway = host_default_route_gateway
container_ns.route("replace", gateway=container_gateway, index=container_interface_index)