Hi,
Thank you for your reply.
The issue I had in my previous post was fixed when I added to the fxs library the ietf-netconf-notification.fxs.
I opened the traces as you suggested and see the following:
TRACE Connected (maapi) to ConfD
TRACE MAAPI_XPATH2HKP
8-May-2017::11:20:29.679 22974/b2fffb40/25 SEND op=228 isrel=0 th=-1 #Bin</bgp/peer-groups/pee(7)…>
8-May-2017::11:20:29.681 22974/b2fffb40/25 GOT [1033149831,13885182,[1693656965|555337807]]
–> CONFD_OK
netconf-config-change begin
changed-by begin
username “Admin”
session-id 0
source-host 160.160.160.160
changed-by end
datastore enum<0>
edit begin
target /eci-bgp:bgp/peer-groups/peer-group
edit end
netconf-config-change end
TRACE NOTIFICATION_SEND NETCONF
8-May-2017::11:20:29.685 22974/b2fffb40/22 SEND op=15 isrel=0 th=-1 {170,‘NETCONF’,undefined,{19,{2017,5,8,11,20,29,681910,0,0}},2,{hxml,[{[1244620176|2103098691],start},{[1244620176|737643097],start},{870658415,#Bin},{372565948,{12,0}},{1399987302,{160,160,160,160}},{[1244620176|737643097],stop},{449538578,{28,0}},{[1244620176|1716487530],start},{1914145912,{34,[1033149831,13885182,[1693656965|555337807]]}},{[1244620176|1716487530],stop},{[1244620176|2103098691],stop}]}}
the only trace I see in the develop log is:
8-May-2017::11:20:29.702 isim_Host1 confd[22943]: devel-c Internal error on API request
the code is:
CONFD_SET_TAG_XMLBEGIN(&values[Index], ncn_netconf_config_change, ncn__ns); Index++;
CONFD_SET_TAG_XMLBEGIN(&values[Index], ncn_changed_by, ncn__ns); Index++;
CONFD_SET_TAG_STR(&values[Index], ncn_username, "Admin"); Index++;
CONFD_SET_TAG_UINT32(&values[Index], ncn_session_id, 0); Index++;
CONFD_SET_TAG_IPV4(&values[Index], ncn_source_host, an_addr); Index++;
CONFD_SET_TAG_XMLEND(&values[Index], ncn_changed_by, ncn__ns); Index++;
CONFD_SET_TAG_ENUM_VALUE(&values[Index], ncn_datastore, ncn_running); Index++;
CONFD_SET_TAG_XMLBEGIN(&values[Index], ncn_edit, ncn__ns); Index++;
CONFD_SET_TAG_OBJECTREF(&values[Index], ncn_target, p_KeyPath); Index++;
CONFD_SET_TAG_XMLEND(&values[Index], ncn_edit, ncn__ns); Index++;
CONFD_SET_TAG_XMLEND(&values[Index], ncn_netconf_config_change, ncn__ns); Index++;
DEBUG(netConfTraceP, <<"ConfDAdaptorManager::CommitWasDone CONFD_SET_TAG done ");
struct confd_datetime EventTime;
struct tm Time;
struct timeval TimeValue;
gettimeofday(&TimeValue, NULL);
gmtime_r(&TimeValue.tv_sec, &Time);
memset(&EventTime, 0, sizeof(EventTime));
EventTime.year = 1900 + Time.tm_year;
EventTime.month = Time.tm_mon + 1;
EventTime.day = Time.tm_mday;
EventTime.sec = Time.tm_sec;
EventTime.micro = TimeValue.tv_usec;
EventTime.timezone = 0;
EventTime.timezone_minutes = 0;
EventTime.hour = Time.tm_hour;
EventTime.min = Time.tm_min;
#if 1
print_modifications(values, Index, NULL, 0);
#endif
int status = confd_notification_send(m_LiveContext, &EventTime, values, Index);
can you advise why I receive this error?
Thanks in advanced
Inbal