magma-nms-magmalte

  • Canonical Telco
Channel Revision Published Runs on
latest/stable 58 30 May 2023
Ubuntu 22.04 Ubuntu 20.04
latest/stable 43 07 Mar 2023
Ubuntu 22.04 Ubuntu 20.04
latest/beta 33 20 Oct 2022
Ubuntu 20.04
latest/edge 57 17 May 2023
Ubuntu 22.04 Ubuntu 20.04
latest/edge 45 15 Mar 2023
Ubuntu 22.04 Ubuntu 20.04
1.8/stable 58 30 May 2023
Ubuntu 22.04
1.8/candidate 58 30 May 2023
Ubuntu 22.04
1.8/beta 58 30 May 2023
Ubuntu 22.04
1.8/edge 58 30 May 2023
Ubuntu 22.04
1.6/stable 43 24 Feb 2023
Ubuntu 20.04
1.6/candidate 43 24 Feb 2023
Ubuntu 20.04
1.6/beta 43 24 Feb 2023
Ubuntu 20.04
1.6/edge 50 25 Apr 2023
Ubuntu 20.04
juju deploy magma-nms-magmalte
Show information

Platform:

charms.magma_nms_magmalte.v0.admin_operator

Getting started
charmcraft fetch-lib charms.magma_nms_magmalte.v0.admin_operator
Requirer Charm
class AdminOperatorRequires(Object):

    on = AdminOperatorRequirerCharmEvents()

    def __init__(self, charm, relationship_name: str):
        self.relationship_name = relationship_name
        self.charm = charm
        super().__init__(charm, relationship_name)
        self.framework.observe(
            charm.on[relationship_name].relation_joined, self._on_relation_changed
        )
        self.framework.observe(
            charm.on[relationship_name].relation_changed, self._on_relation_changed
        )

    def _on_relation_changed(self, event):
        relation_data = event.relation.data
        certificate = relation_data[event.unit].get("certificate")
        self.on.certificate_available.emit(certificate=certificate)


class CertificateRequestEvent

Methods

CertificateRequestEvent. __init__( self , handle , relation_id: int )

CertificateRequestEvent. snapshot( self )

CertificateRequestEvent. restore( self , snapshot )

class CertificateAvailableEvent

Methods

CertificateAvailableEvent. __init__( self , handle , certificate: str )

CertificateAvailableEvent. snapshot( self )

CertificateAvailableEvent. restore( self , snapshot )

class AdminOperatorProviderCharmEvents

class AdminOperatorRequirerCharmEvents

class AdminOperatorProvides

Methods

AdminOperatorProvides. __init__( self , charm , relationship_name: str )

AdminOperatorProvides. set_certificate( self , certificate: str , relation_id: int )

class AdminOperatorRequires

Methods

AdminOperatorRequires. __init__( self , charm , relationship_name: str )