Can some one please help me in implementing netconf call home using ipv6 in python. Just read some articles about netconf home and tried implementing the same with below code , Can someone please check and tell me if I am heading in the right direction or what's need to be done so that I will receive the signal on my ipv6 when my network device send it.
from netconf_client.connect import connect_tls, CallhomeManager
from netconf_client.ncclient import Manager
with CallhomeManager(port=4335) as call_home_mgr:
try :
session = call_home_mgr.accept_one_tls(host='::',port=4335, keyfile='key.pem',
certfile='cert.pem',
ca_certs='cacert.pem', timeout=6000)
print('session:', session)
except Exception as e:
print(e)
with Manager(session) as mgr:
print('get_config', mgr.get_config(source='running'))