API Client to communicate with Magma Orchestrator
Project description
magma-orc8r-client
Installation
pip3 install magma-orc8r-client
Usage
from magma_orc8r_client.orchestrator import Orc8r
from magma_orc8r_client.schemas.dns import DNS
from magma_orc8r_client.schemas.epc import EPC
from magma_orc8r_client.schemas.cellular import Cellular
from magma_orc8r_client.schemas.network import Network
from magma_orc8r_client.schemas.ran import RAN
from magma_orc8r_client.schemas.tdd_config import TDDConfig
orc8r_client = Orc8r(
url="https://api.magma.com",
admin_operator_pfx_path="/path/to/admin_operator.pfx",
admin_operator_pfx_password="my_pfx_password",
)
network_id = "my_new_networkid"
new_network = Network(
dns=DNS(dhcp_server_enabled=True, enable_caching=True, local_ttl=0),
cellular=Cellular(
epc=EPC(
gx_gy_relay_enabled=True,
hss_relay_enabled=False,
lte_auth_amf="gAA=",
lte_auth_op="EREREREREREREREREREREQ==",
mcc="001",
mnc="01",
tac=1,
),
ran=RAN(
bandwidth_mhz=20,
tdd_config=TDDConfig(
earfcndl=44590,
earfcnul=18000,
special_subframe_pattern=7,
subframe_assignment=2,
),
),
),
description=network_id,
id=network_id,
name=network_id,
)
orc8r_client.lte.create(network=new_network)
list_of_networks = orc8r_client.lte.list()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for magma_orc8r_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d519f91f64c96e9733d341ca4c6f97e34eb7dcd515c2babe972ac2c3d9fefb1d |
|
MD5 | d428d28c46eea0bdedbcb4dc1576096e |
|
BLAKE2b-256 | 7add467f9aa0f2d077f65914340eb116a703e116fe59d5dbe328394efc654dab |