X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fk8s_conn.py;h=b1f3230c07ba36724bd6aa236679105f32362454;hp=3305ac545713ab03ebffaccd3dc15b8407b14dbb;hb=d14e4213c439940a73225a7e12062465e31f371b;hpb=d5d83a4250eebe2e82fcb9986bcc1d3db5610c3d diff --git a/n2vc/k8s_conn.py b/n2vc/k8s_conn.py index 3305ac5..b1f3230 100644 --- a/n2vc/k8s_conn.py +++ b/n2vc/k8s_conn.py @@ -253,6 +253,28 @@ class K8sConnector(abc.ABC, Loggable): :return: True if successful """ + @abc.abstractmethod + async def exec_primitive( + self, + cluster_uuid: str = None, + kdu_instance: str = None, + primitive_name: str = None, + timeout: float = 300, + params: dict = None, + db_dict: dict = None, + ) -> str: + """Exec primitive (Juju action) + + :param cluster_uuid str: The UUID of the cluster + :param kdu_instance str: The unique name of the KDU instance + :param primitive_name: Name of action that will be executed + :param timeout: Timeout for action execution + :param params: Dictionary of all the parameters needed for the action + :db_dict: Dictionary for any additional data + + :return: Returns the output of the action + """ + @abc.abstractmethod async def inspect_kdu( self,