ConfD User Community

Question about notifiction example


#1

Hi,

Getting some python error while trying to execute “confd-basic-5.4/examples.confd/netconf_notifications” example.Can anyone help me to how to rectify this error.

[amanimar@FADL133 netconf_notifications]$ make query
/home/amanimar/confd-basic-5.4/bin/netconf-console-tcp --get -x netconf
Traceback (most recent call last):
File “/home/amanimar/confd-basic-5.4/bin/netconf-console”, line 734, in
c.connect()
File “/home/amanimar/confd-basic-5.4/bin/netconf-console”, line 300, in connect
self.sock = create_connection(self.hostname, self.port)
File “/home/amanimar/confd-basic-5.4/bin/netconf-console”, line 348, in create_connection
except socket.error, (code, msg):
ValueError: need more than 1 value to unpack
make: *** [query] Error 1

[amanimar@FADL133 netconf_notifications]$ make replay
/home/amanimar/confd-basic-5.4/bin/netconf-console-tcp -s all replay.xml
Traceback (most recent call last):
File “/home/amanimar/confd-basic-5.4/bin/netconf-console”, line 734, in
c.connect()
File “/home/amanimar/confd-basic-5.4/bin/netconf-console”, line 300, in connect
self.sock = create_connection(self.hostname, self.port)
File “/home/amanimar/confd-basic-5.4/bin/netconf-console”, line 348, in create_connection
except socket.error, (code, msg):
ValueError: need more than 1 value to unpack
make: *** [replay] Error 1

Thanks,
Aarur


#2

Looks like your TCP connection attempt to ConfD timed out?


#3

Also, I am wondering if you can tell us what Python version you are using. As it was noted, you are having a problem connecting to ConfD, so of course verify that ConfD is running. But the script is having a problem handling the Exception and this may be due to you using a Python version less than 2.6.