19bbe6b1fb6433bf6587bb67aa3728f45f368d58
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / a1sim / a1sim.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 # SPDX-License-Identifier: Apache-2.0
4 """Oran A1 Simulator module."""
5
6 from onapsdk.onap_service import OnapService
7
8 class A1sim(OnapService):
9
10     @classmethod
11     def check_version(cls, url) -> str:
12         """
13         Return ric version.
14
15         Returns:
16             the ric version
17
18         """
19         url = f"{url}/counter/interface"
20         version = cls.send_message('GET',
21                                    'Get ric version',
22                                     url)
23         return version