Skip to content
Snippets Groups Projects
Commit 6d626147 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

IPv6BGPPeer: make IPType filed invisible in GUI.

parent 582e60e2
No related branches found
No related tags found
1 merge request!298Add BFD configuration to Service binding ports
......@@ -82,7 +82,6 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
return IPTypes.IPV4
class IPv6BGPPeer(BaseModel):
ip_type: IPTypes = IPTypes.IPV6
peer_address: IPv6AddressType
authentication_key: str | None = None
has_custom_policies: bool = False
......@@ -97,6 +96,11 @@ def initial_input_form_generator(product_name: str) -> FormGenerator:
def families(self) -> list[IPFamily]:
return [IPFamily.V6UNICAST, IPFamily.V6MULTICAST] if self.add_v6_multicast else [IPFamily.V6UNICAST]
@computed_field # type: ignore[misc]
@property
def ip_type(self) -> IPTypes:
return IPTypes.IPV6
class BindingPortInputForm(FormPage):
model_config = ConfigDict(title=f"{product_name} - Configure Edge Port")
info_label: Label = Field("Please configure the Service Binding Ports for the Edge Port.", exclude=True)
......
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