From 6958d9509232c7b04aa0d838a8b82f5bd3a43667 Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Wed, 14 Aug 2024 13:47:31 +0200 Subject: [PATCH] Fixed the error on showing number of members in modify trunk interface workflow. --- gso/workflows/iptrunk/modify_trunk_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gso/workflows/iptrunk/modify_trunk_interface.py b/gso/workflows/iptrunk/modify_trunk_interface.py index 7ed4c0bc..c938884c 100644 --- a/gso/workflows/iptrunk/modify_trunk_interface.py +++ b/gso/workflows/iptrunk/modify_trunk_interface.py @@ -93,7 +93,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator: "You will need to add the new AE members in the next steps." ) iptrunk_speed: PhysicalPortCapacity = subscription.iptrunk.iptrunk_speed - iptrunk_number_of_members: int = subscription.iptrunk.iptrunk_minimum_links + 1 + iptrunk_number_of_members: int = len(subscription.iptrunk.iptrunk_sides[0].iptrunk_side_ae_members) iptrunk_isis_metric: ReadOnlyField(subscription.iptrunk.iptrunk_isis_metric, default_type=int) # type: ignore[valid-type] iptrunk_ipv4_network: ReadOnlyField( # type: ignore[valid-type] str(subscription.iptrunk.iptrunk_ipv4_network), default_type=IPv4AddressType -- GitLab