Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update INFO.yaml with new PTL
[demo.git]
/
vnfs
/
VESreporting_vLB5.0
/
vpp_measurement_reporter.c
diff --git
a/vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c
b/vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c
index
7805049
..
6636843
100644
(file)
--- a/
vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c
+++ b/
vnfs/VESreporting_vLB5.0/vpp_measurement_reporter.c
@@
-122,6
+122,10
@@
int main(int argc, char** argv)
char* vnic = argv[3];
char* fqdn2 = NULL;
int port2 = 0;
char* vnic = argv[3];
char* fqdn2 = NULL;
int port2 = 0;
+ char* caFile = "/opt/config/onap-ca.crt";
+ char* userName = "sample1";
+ char* passWord = "sample1";
+
if(argc == 6)
{
if(argc == 6)
{
@@
-129,6
+133,8
@@
int main(int argc, char** argv)
port2 = atoi(argv[4]);
vnic = argv[5];
}
port2 = atoi(argv[4]);
vnic = argv[5];
}
+ else
+ vnic = argv[3];
MEASUREMENT_VNIC_PERFORMANCE * vnic_performance = NULL;
MEASUREMENT_VNIC_PERFORMANCE * vnic_performance = NULL;
@@
-155,15
+161,15
@@
int main(int argc, char** argv)
NULL, /* optional path */
NULL, /* optional topic */
100, /* Ring Buffer size */
NULL, /* optional path */
NULL, /* optional topic */
100, /* Ring Buffer size */
-
0
, /* HTTPS? */
+
1
, /* HTTPS? */
NULL, /* cert file */
NULL, /* key file */
NULL, /* cert file */
NULL, /* key file */
-
NULL
, /* ca info */
+
caFile
, /* ca info */
NULL, /* ca file */
0, /* verify peer */
0, /* verify host */
NULL, /* ca file */
0, /* verify peer */
0, /* verify host */
-
"sample1"
, /* Username */
-
"sample1"
, /* Password */
+
userName
, /* Username */
+
passWord
, /* Password */
"sample1", /* Username2 */
"sample1", /* Password2 */
NULL, /* Source ip */
"sample1", /* Username2 */
"sample1", /* Password2 */
NULL, /* Source ip */
@@
-233,7
+239,7
@@
int main(int argc, char** argv)
}
vpp_m = evel_new_measurement(READ_INTERVAL,"vLoadBalancer","TrafficStats_1.2.3.4");
}
vpp_m = evel_new_measurement(READ_INTERVAL,"vLoadBalancer","TrafficStats_1.2.3.4");
- vnic_performance = (MEASUREMENT_VNIC_PERFORMANCE *)evel_measurement_new_vnic_performance(
"eth0"
, "true");
+ vnic_performance = (MEASUREMENT_VNIC_PERFORMANCE *)evel_measurement_new_vnic_performance(
vnic
, "true");
evel_meas_vnic_performance_add(vpp_m, vnic_performance);
if(vpp_m != NULL) {
evel_meas_vnic_performance_add(vpp_m, vnic_performance);
if(vpp_m != NULL) {