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

Update a trunk description when it is migrated

parent 5e8349e7
No related branches found
No related tags found
1 merge request!305Update a trunk description when it is migrated
Pipeline #90334 failed
......@@ -762,6 +762,15 @@ def update_subscription_model(
IptrunkInterfaceBlock.new(subscription_id=uuid4(), **member),
)
# Take the new site names, and update the subscription description
side_names = sorted([
subscription.iptrunk.iptrunk_sides[0].iptrunk_side_node.router_site.site_name,
subscription.iptrunk.iptrunk_sides[1].iptrunk_side_node.router_site.site_name,
])
subscription.description = (
f"IP trunk {side_names[0]} {side_names[1]}, geant_s_sid:{subscription.iptrunk.geant_s_sid}"
)
return {"subscription": subscription}
......
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