Skip to content
Snippets Groups Projects
Verified Commit bab2fa1b authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

update create IP trunk in pp

parent 5a82e691
No related branches found
No related tags found
1 merge request!12Add sites, and add integration of IPtrunks and routers with LSO deployment
......@@ -36,29 +36,29 @@ def _send_request(endpoint: str, parameters: dict, process_id: UUIDstr):
raise AssertionError(post_request.text)
def _provision_service(
endpoint: str,
def provision_device(
subscription: SubscriptionModel,
process_id: UUIDstr,
dry_run: bool):
dry_run: bool = True):
parameters = {
'dry_run': dry_run,
'subscription': json.loads(json_dumps(subscription))
}
_send_request(endpoint, parameters, process_id)
def provision_device(subscription: DeviceProvisioning,
process_id: UUIDstr,
dry_run: bool = True):
_provision_service('device', subscription, process_id, dry_run)
_send_request('device', parameters, process_id)
def provision_ip_trunk(subscription: IptrunkProvisioning,
process_id: UUIDstr,
dry_run: bool = True):
_provision_service('ip_trunk', subscription, process_id, dry_run)
parameters = {
'subscription': json.loads(json_dumps(subscription)),
'dry_run': dry_run,
'verb': '', # FIXME
'object': '' # FIXME
}
_send_request('ip_trunk', parameters, process_id)
@inputstep('Await provisioning proxy results', assignee=Assignee('SYSTEM'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment