Hi,
You notification content doesn’t even show up in the correct form in this forum, so begin with reading this post:
Seems to work with the examples.confd/netconf_notifications example
Terminal window 1
$ pwd
/Users/tailf/confd-7.4.1/examples.confd/netconf_notifications
$ diff -u notifier_builtin_replay_store.c.bak notifier_builtin_replay_store.c
--- notifier_builtin_replay_store.c.bak 2021-03-02 10:16:05.000000000 +0100
+++ notifier_builtin_replay_store.c 2021-03-02 10:10:27.000000000 +0100
@@ -83,11 +83,12 @@
static void send_notifup_1(int index, int flags1, int flags2)
{
- confd_tag_value_t vals[9];
+ confd_tag_value_t vals[10];
int i = 0;
CONFD_SET_TAG_XMLBEGIN(&vals[i], notif_link_up, notif__ns); i++;
CONFD_SET_TAG_UINT32(&vals[i], notif_if_index, index); i++;
+ CONFD_SET_TAG_STR(&vals[i], notif_extra_id, "[.='aa bb']"); i++;
CONFD_SET_TAG_XMLBEGIN(&vals[i], notif_link_property, notif__ns); i++;
CONFD_SET_TAG_UINT32(&vals[i], notif_flags, flags1); i++;
CONFD_SET_TAG_XMLEND(&vals[i], notif_link_property, notif__ns); i++;
$ make stop clean all start-builtin
...
notifier started
Terminal window 2
$ netconf-console --create-subscription=interface
Terminal window 1
u
Terminal window 2
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<ok/>
</rpc-reply>
<?xml version="1.0" encoding="UTF-8"?>
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2021-03-02T09:18:31.662995+00:00</eventTime>
<link-up xmlns="http://tail-f.com/ns/test/notif">
<if-index>1</if-index>
<extra-id>[.='aa bb']</extra-id>
<link-property>
<flags>2112</flags>
</link-property>
<link-property>
<flags>32</flags>
</link-property>
</link-up>
</notification>
Best regards