Skip to content

Port label

Product type for a Port Label.

The port label is a product that is attached to an Edge Port, and it can be used to categorize different kinds of 'special' Edge Ports. For example, the label "Azure ExpressRoute" Port is used for grouping Edge Ports where Azure ExpressRoute subscriptions can land.

PortLabelName

Bases: strEnum

Available values for a Port Label.

Source code in gso/products/product_types/port_label.py
class PortLabelName(strEnum):
    """Available values for a Port Label."""

    EXPRESSROUTE_EDGE = "Azure ExpressRoute Edge"
    """Azure ExpressRoute Edge."""
    DDOS_EXIT_PORT = "DDoS Exit Port"
    """DDoS Exit Port where we mitigate DDoS attacks by routing traffic here."""

EXPRESSROUTE_EDGE = 'Azure ExpressRoute Edge' class-attribute instance-attribute

Azure ExpressRoute Edge.

DDOS_EXIT_PORT = 'DDoS Exit Port' class-attribute instance-attribute

DDoS Exit Port where we mitigate DDoS attacks by routing traffic here.

PortLabelInactive

Bases: SubscriptionModel

An inactive Port Label.

Source code in gso/products/product_types/port_label.py
class PortLabelInactive(SubscriptionModel, is_base=True):
    """An inactive Port Label."""

    port_label_name: PortLabelName
    port_label: PortLabelBlockInactive

PortLabelProvisioning

Bases: PortLabelInactive

A Port Label that is being provisioned.

Source code in gso/products/product_types/port_label.py
class PortLabelProvisioning(PortLabelInactive, lifecycle=[SubscriptionLifecycle.PROVISIONING]):
    """A Port Label that is being provisioned."""

    port_label_name: PortLabelName
    port_label: PortLabelBlockProvisioning

PortLabel

Bases: PortLabelProvisioning

A Port Label that is attached to an Edge Port.

Source code in gso/products/product_types/port_label.py
class PortLabel(PortLabelProvisioning, lifecycle=[SubscriptionLifecycle.ACTIVE]):
    """A Port Label that is attached to an Edge Port."""

    port_label_name: PortLabelName
    port_label: PortLabelBlock