aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/setup_vnic.py
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/setup_vnic.py')
-rw-r--r--deploy/setup_vnic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/setup_vnic.py b/deploy/setup_vnic.py
index 7dcd8d94..de3b5ed6 100644
--- a/deploy/setup_vnic.py
+++ b/deploy/setup_vnic.py
@@ -13,7 +13,7 @@ import yaml
if __name__ == "__main__":
network_config_file = os.environ["NETWORK"]
- network_config = yaml.load(open(network_config_file, "r"))
+ network_config = yaml.safe_load(open(network_config_file, "r"))
os.system(
"sudo ovs-vsctl --may-exist add-port br-external mgmt_vnic -- set Interface mgmt_vnic type=internal") # noqa
os.system("sudo ip addr flush mgmt_vnic")