04-02-2019 08:51 PM - edited 04-02-2019 08:52 PM
Hi team,
I'm trying to cut down the NetconfSession is trying to open a netconf session to an unreachable host, the example below it takes about 130s until the instance comes back.
provider = NetconfServiceProvider(address=kwargs.get("host"), port=kwargs.get("port"), username=kwargs.get("auth").get("user"), password=kwargs.get("auth").get("passwd"), protocol=kwargs.get("protocol"), timeout=0)
and I had tried to change the timeout to 60s(60*1000), but it seems no difference:
provider = NetconfServiceProvider(address=kwargs.get("host"), port=kwargs.get("port"), username=kwargs.get("auth").get("user"), password=kwargs.get("auth").get("passwd"), protocol=kwargs.get("protocol"), timeout=60*1000)
So, what is the default timeout for NetconfSession timeout? and how to change the timeout for the NetconfSession?
Thanks.