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

Merge branch 'feature/update-iptrunk-update-endpoint' into 'develop'

update IP trunk modification endpoint signature

See merge request !27
parents 50becce2 329bf34c
No related branches found
No related tags found
1 merge request!27update IP trunk modification endpoint signature
...@@ -42,8 +42,6 @@ class IPTrunkModifyParams(IPTrunkParams): ...@@ -42,8 +42,6 @@ class IPTrunkModifyParams(IPTrunkParams):
#: The old subscription object, represented as a dictionary. This allows #: The old subscription object, represented as a dictionary. This allows
#: for calculating the difference in subscriptions. #: for calculating the difference in subscriptions.
old_subscription: dict old_subscription: dict
#: The type of object that is changed.
object: str
class IPTrunkCheckParams(IPTrunkParams): class IPTrunkCheckParams(IPTrunkParams):
...@@ -111,11 +109,9 @@ def modify_ip_trunk(params: IPTrunkModifyParams) -> PlaybookLaunchResponse: ...@@ -111,11 +109,9 @@ def modify_ip_trunk(params: IPTrunkModifyParams) -> PlaybookLaunchResponse:
'old_wfo_trunk_json': params.old_subscription, 'old_wfo_trunk_json': params.old_subscription,
'dry_run': str(params.dry_run), 'dry_run': str(params.dry_run),
'verb': 'modify', 'verb': 'modify',
'config_object': params.object,
'commit_comment': f'IPtrunk ' 'commit_comment': f'IPtrunk '
f"{params.subscription['iptrunk']['geant_s_sid']} " f"{params.subscription['iptrunk']['geant_s_sid']} "
f"({params.subscription['subscription_id']}) - " f"({params.subscription['subscription_id']})"
f'modification of {params.object}'
} }
return run_playbook( return run_playbook(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment