summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
82d1519)
Issue-ID: SIM-103
Change-Id: Id94ff6f0cbef830b1aaf44456d8cf6a6308f2a94
Signed-off-by: Alex Stancu <alexandru.stancu@highstreet-technologies.com>
- if (nf_ip_v4_address != 0 && strlen(nf_ip_v4_address) > 0) {
- if(cJSON_AddStringToObject(data, "oam-host", nf_ip_v4_address) == 0) {
- log_error("cJSON_AddItemToObject failed\n");
- cJSON_Delete(stnd_defined_fields);
- return 0;
+ if (!framework_environment.settings.ip_v6_enabled) {
+ if (nf_ip_v4_address != 0 && strlen(nf_ip_v4_address) > 0) {
+ if(cJSON_AddStringToObject(data, "oam-host", nf_ip_v4_address) == 0) {
+ log_error("cJSON_AddItemToObject failed\n");
+ cJSON_Delete(stnd_defined_fields);
+ return 0;
+ }
-
- if (nf_ip_v6_address != 0 && strlen(nf_ip_v6_address) > 0) {
- if(cJSON_AddStringToObject(data, "oam-host", nf_ip_v6_address) == 0) {
- log_error("cJSON_AddItemToObject failed\n");
- cJSON_Delete(stnd_defined_fields);
- return 0;
+ else {
+ if (nf_ip_v6_address != 0 && strlen(nf_ip_v6_address) > 0) {
+ if(cJSON_AddStringToObject(data, "oam-host", nf_ip_v6_address) == 0) {
+ log_error("cJSON_AddItemToObject failed\n");
+ cJSON_Delete(stnd_defined_fields);
+ return 0;
+ }