Skip to content

SystemBwDiameterRoutingPeerAddRequest

Bases: OCIRequest

Add a Diameter routing peer. The realm must refer to a Diameter routing realm whose action is relay. The destinationPeerIdentity must refer to an existing Diameter peer whose mode is active. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

instance (str):

realm (str):

application_id (str):

identity (str):

priority (int):

weight (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemBwDiameterRoutingPeerAddRequest(OCIRequest):
    """Add a Diameter routing peer.  The realm must refer to a Diameter routing realm whose action is relay.  The destinationPeerIdentity must refer to an existing Diameter peer whose mode is active.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        instance (str):

        realm (str):

        application_id (str):

        identity (str):

        priority (int):

        weight (int):

    """

    instance: str = field(metadata={"alias": "instance"})

    realm: str = field(metadata={"alias": "realm"})

    application_id: str = field(metadata={"alias": "applicationId"})

    identity: str = field(metadata={"alias": "identity"})

    priority: int = field(metadata={"alias": "priority"})

    weight: int = field(metadata={"alias": "weight"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import SystemBwDiameterRoutingPeerAddRequest

client = Client()

command = SystemBwDiameterRoutingPeerAddRequest(
    instance=...,
    realm=...,
    application_id=...,
    identity=...,
    priority=...,
    weight=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemBwDiameterRoutingPeerAddRequest",
    instance=...,
    realm=...,
    application_id=...,
    identity=...,
    priority=...,
    weight=...,
)

print(response)