Guest User

Untitled

a guest
Jan 24th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. provider = NetconfServiceProvider(address="10.0.0.1",
  2. port=830,
  3. username="admin",
  4. password="admin",
  5. protocol="ssh")
  6.  
  7. provider = NetconfServiceProvider(address="ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com",
  8. username= "ec2-user",
  9. public_key_path="mykey.pem")
  10.  
  11. Traceback (most recent call last):
  12. File "hello-ydk.py", line 18, in <module>
  13. private_key_path="mykey.pem")
  14. TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
  15. 1. ydk_.providers.NetconfServiceProvider(repo: ydk_.path.Repository, address: unicode, username: unicode, password: unicode, port: int=830L, protocol: unicode=u'ssh', on_demand: bool=True, timeout: int=-1L)
  16. 2. ydk_.providers.NetconfServiceProvider(address: unicode, username: unicode, password: unicode, port: int=830L, protocol: unicode=u'ssh', on_demand: bool=True, common_cache: bool=False, timeout: int=-1L)
  17. 3. ydk_.providers.NetconfServiceProvider(repo: ydk_.path.Repository, address: unicode, username: unicode, private_key_path: unicode, public_key_path: unicode, port: int=830L, on_demand: bool=True, timeout: int=-1L)
  18. 4. ydk_.providers.NetconfServiceProvider(address: unicode, username: unicode, private_key_path: unicode, public_key_path: unicode, port: int=830L, on_demand: bool=True, common_cache: bool=False, timeout: int=-1L)
  19.  
  20. Invoked with: 'ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com', 'ec2-user'; kwargs: repo=None, public_key_path='mykey.pem'
  21.  
  22. from: can't read /var/mail/ydk.services
  23. from: can't read /var/mail/ydk.providers
  24. from: can't read /var/mail/ydk.models.cisco_ios_xr
  25. from: can't read /var/mail/datetime
  26. ./hello-ydk.py: 13: ./hello-ydk.py: Syntax error: "(" unexpected (expecting "then")
Add Comment
Please, Sign In to add comment