Install all the downloaded yang models.
$cd l2/build/yang
- $sysrepoctl -i _3gpp-common-top.yang
- $sysrepoctl -i _3gpp-5g-common-yang-types.yang
$sysrepoctl -i _3gpp-common-yang-types.yang
- $sysrepoctl -i _3gpp-common-managed-element.yang
+ $sysrepoctl -i _3gpp-common-top.yang
$sysrepoctl -i _3gpp-common-measurements.yang
- $sysrepoctl -i _3gpp-common-subscription-control.yang
- $sysrepoctl -i _3gpp-common-fm.yang
$sysrepoctl -i _3gpp-common-trace.yang
$sysrepoctl -i _3gpp-common-managed-function.yang
+ $sysrepoctl -i _3gpp-common-subscription-control.yang
+ $sysrepoctl -i _3gpp-common-fm.yang
+ $sysrepoctl -i _3gpp-common-managed-element.yang
+ $sysrepoctl -i _3gpp-5g-common-yang-types.yang
+ $sysrepoctl -i _3gpp-nr-nrm-rrmpolicy.yang
$sysrepoctl -i _3gpp-nr-nrm-gnbdufunction.yang
$sysrepoctl -i _3gpp-nr-nrm-nrcelldu.yang
- $sysrepoctl -i _3gpp-nr-nrm-rrmpolicy.yang
3. Start Netopeer2-server:
- Install all the downloaded yang models.
- Ubuntu :
-
+
| cd <O-DU High Directory>/l2/build/yang
- | sysrepoctl -i _3gpp-common-top.yang
- | sysrepoctl -i _3gpp-5g-common-yang-types.yang
| sysrepoctl -i _3gpp-common-yang-types.yang
- | sysrepoctl -i _3gpp-common-managed-element.yang
+ | sysrepoctl -i _3gpp-common-top.yang
| sysrepoctl -i _3gpp-common-measurements.yang
- | sysrepoctl -i _3gpp-common-subscription-control.yang
- | sysrepoctl -i _3gpp-common-fm.yang
| sysrepoctl -i _3gpp-common-trace.yang
| sysrepoctl -i _3gpp-common-managed-function.yang
+ | sysrepoctl -i _3gpp-common-subscription-control.yang
+ | sysrepoctl -i _3gpp-common-fm.yang
+ | sysrepoctl -i _3gpp-common-managed-element.yang
+ | sysrepoctl -i _3gpp-5g-common-yang-types.yang
+ | sysrepoctl -i _3gpp-nr-nrm-rrmpolicy.yang
| sysrepoctl -i _3gpp-nr-nrm-gnbdufunction.yang
| sysrepoctl -i _3gpp-nr-nrm-nrcelldu.yang
- | sysrepoctl -i _3gpp-nr-nrm-rrmpolicy.yang
- Start Netopeer2-server:
VesEvent::VesEvent(VesEventType eventType)
: mVesEventType(eventType) {
- getConfig();
- createUrl();
- mHttpClient = new HttpClient(mVesUrl, mVesServerUsername, mVesServerPassword);
};
free(mSendData);
}
+
+/*******************************************************************
+ *
+ * @brief Initialize the Ves Event
+ *
+ * @details
+ *
+ * Function : init
+ *
+ * Functionality:
+ * - Intialize the Ves event with configuration
+ * Sets the URL
+ * Instantiates the http client
+ *
+ * @params[in] IN - void
+ * @return void
+ *
+ * ****************************************************************/
+
+void VesEvent::init(){
+
+ getConfig();
+ createUrl();
+ mHttpClient = new HttpClient(mVesUrl, mVesServerUsername, mVesServerPassword);
+
+}
+
/*******************************************************************
*
* @brief prepare Ves Event Fields
return true;
}
+/*******************************************************************
+ *
+ * @brief Send the Ves event over Http
+ *
+ * @details
+ *
+ * Function : send
+ *
+ * Functionality:
+ * - Sends the Ves event over http
+ *
+ * @params[in] IN - void
+ * @return true - success
+ * false - failure
+ *
+ * ****************************************************************/
+
bool VesEvent::send()
{
return mHttpClient->send(mSendData);
{
mVesUrl = "https://" + mVesServerIp + ":" + mVesServerPort + "/eventListener/v7";
}
+
+
+
/**********************************************************************
End of file
**********************************************************************/
VesEvent();
VesEvent(VesEventType);
virtual ~VesEvent();
+ void init();
bool prepare(const Message* msg = NULL);
bool send();
ret = false;
break;
}
+ mVesEvent->init();
if(!mVesEvent->prepare(msg)) {
O1_LOG("\nO1 VesEventHandler : Failed to prepare VES message");
ret = false;