@classmethod
def get_odu_oru_status(cls,
odu_node,
- oru_node,
+ radio_unit,
basic_auth: Dict[str, str]) -> dict:
"""
Get status of SDNC component.
the status of the SDNC component
"""
- url = f"{cls.base_url}/rests/data/network-topology:network-topology/"\
- + f"topology=topology-netconf/node={odu_node}/yang-ext:mount/"\
- + f"o-ran-sc-du-hello-world:network-function/du-to-ru-connection={oru_node}"
+ url = f"{cls.base_url}/rests/data/network-topology:network-topology/topology=topology-netconf/node={odu_node}/yang-ext:mount/o-ran-sc-du-hello-world:network-function/distributed-unit-functions={odu_node}/radio-resource-management-policy-ratio={radio_unit}"
status = cls.send_message_json('GET',
- 'Get status of Odu Oru connectivity',
+ 'Get status of Odu connectivity',
url,
basic_auth=basic_auth)
return status
"""
url = f"{cls.base_url}/rests/operations/data-provider:read-faultlog-list"
- return cls.send_message('POST', 'Get SDNC events', url, data='{"input": {"filter": [ {"property": "node-id", "filtervalue": "' + device + '"}],"sortorder": [{"property": "timestamp","sortorder": "descending"}],"pagination": {"size": 10,"page": 1}}}', basic_auth=basic_auth)
+ return cls.send_message('POST', 'Get SDNC events', url, data='{"input": {"filter": [ {"property": "node-id", "filtervalue": " ' + device + ' "}],"sortorder":[{"property": "timestamp","sortorder": "descending"}],"pagination": {"size": 10,"page": 1}}}', headers=cls.header, basic_auth=basic_auth)