Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/interlink/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ async def create_link(
connection_id: Optional[str] = None,
partner_id: Optional[str] = None,
peer_asn: Optional[int] = None,
vlan: Optional[int] = None,
) -> Link:
"""
Create a link.
Expand All @@ -782,6 +783,7 @@ async def create_link(
:param partner_id: If set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
One-Of ('host'): at most one of 'connection_id', 'partner_id' could be set.
:param peer_asn: For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
:param vlan: For self-hosted links only, it is possible to choose the VLAN ID. If the VLAN is not available (ie already taken or out of range), an error is returned.
:return: :class:`Link <Link>`

Usage:
Expand Down Expand Up @@ -810,6 +812,7 @@ async def create_link(
project_id=project_id,
tags=tags,
peer_asn=peer_asn,
vlan=vlan,
connection_id=connection_id,
partner_id=partner_id,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ def marshal_CreateLinkRequest(
if request.peer_asn is not None:
output["peer_asn"] = request.peer_asn

if request.vlan is not None:
output["vlan"] = request.vlan

return output


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/interlink/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,11 @@ class CreateLinkRequest:
For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
"""

vlan: Optional[int]
"""
For self-hosted links only, it is possible to choose the VLAN ID. If the VLAN is not available (ie already taken or out of range), an error is returned.
"""

connection_id: Optional[str]

partner_id: Optional[str]
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,7 @@ def create_link(
connection_id: Optional[str] = None,
partner_id: Optional[str] = None,
peer_asn: Optional[int] = None,
vlan: Optional[int] = None,
) -> Link:
"""
Create a link.
Expand All @@ -780,6 +781,7 @@ def create_link(
:param partner_id: If set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
One-Of ('host'): at most one of 'connection_id', 'partner_id' could be set.
:param peer_asn: For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
:param vlan: For self-hosted links only, it is possible to choose the VLAN ID. If the VLAN is not available (ie already taken or out of range), an error is returned.
:return: :class:`Link <Link>`

Usage:
Expand Down Expand Up @@ -808,6 +810,7 @@ def create_link(
project_id=project_id,
tags=tags,
peer_asn=peer_asn,
vlan=vlan,
connection_id=connection_id,
partner_id=partner_id,
),
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@ def marshal_CreateLinkRequest(
if request.peer_asn is not None:
output["peer_asn"] = request.peer_asn

if request.vlan is not None:
output["vlan"] = request.vlan

return output


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,11 @@ class CreateLinkRequest:
For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
"""

vlan: Optional[int]
"""
For self-hosted links only, it is possible to choose the VLAN ID. If the VLAN is not available (ie already taken or out of range), an error is returned.
"""

connection_id: Optional[str]

partner_id: Optional[str]
Expand Down