Skip to content
Snippets Groups Projects
Commit 27aa1a2a authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Common - Tools - Object Factory:

- Removed availability percentage from SLA Availability constraint (new feature)
parent 3091a572
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!62Add relese/2.0.1 fixes
......@@ -29,9 +29,9 @@ def json_constraint_endpoint_location_gps(endpoint_id : Dict, latitude : float,
def json_constraint_endpoint_priority(endpoint_id : Dict, priority : int) -> Dict:
return {'endpoint_priority': {'endpoint_id': endpoint_id, 'priority': priority}}
def json_constraint_sla_availability(num_disjoint_paths : int, all_active : bool, availability : float) -> Dict:
def json_constraint_sla_availability(num_disjoint_paths : int, all_active : bool) -> Dict:
return {'sla_availability': {
'num_disjoint_paths': num_disjoint_paths, 'all_active': all_active, 'availability': availability
'num_disjoint_paths': num_disjoint_paths, 'all_active': all_active
}}
def json_constraint_sla_capacity(capacity_gbps : float) -> Dict:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment