- example_file = os.path.join(os.path.dirname(__file__), 'examples/cirros_vdu_scaling_vnfd.yaml')
- with open(example_file, 'r') as file:
- vnfd = yaml.safe_load(file)['vnfd']
- vnfd['mgmt-cp'] = 'invalid-cp'
+ example_file = os.path.join(
+ os.path.dirname(__file__), "examples/cirros_vdu_scaling_vnfd.yaml"
+ )
+ with open(example_file, "r") as file:
+ vnfd = yaml.safe_load(file)["vnfd"]
+ vnfd["mgmt-cp"] = "invalid-cp"