>>> from vyroute.Router import BasicRouter >>> v = BasicRouter('10.46.1.80','vyos:377vyos350') >>> v.login() {'Result': 'Login successfully.'} >>> v.configure() {'Result': 'Active configure mode successfully.'} >>> v.static_route({'config':{'target':'203.0.1113.0/24','next-hop':'192.0.2.1','distance':'1'},}) {'Error': TimeoutException('Timeout while waiting for response from device',)}
After this, commit_config() says "you don't need to commit". Previous time I managed to use it successfully, but commit_config() gave me a timeout, despite it actually worked on the router.
I've never used the SSH lib in question so I can't tell why this may happen and how to fix it, it's up to you.