Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- provider = NetconfServiceProvider(address="10.0.0.1",
- port=830,
- username="admin",
- password="admin",
- protocol="ssh")
- provider = NetconfServiceProvider(address="ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com",
- username= "ec2-user",
- public_key_path="mykey.pem")
- Traceback (most recent call last):
- File "hello-ydk.py", line 18, in <module>
- private_key_path="mykey.pem")
- TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
- 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)
- 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)
- 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)
- 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)
- Invoked with: 'ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com', 'ec2-user'; kwargs: repo=None, public_key_path='mykey.pem'
- from: can't read /var/mail/ydk.services
- from: can't read /var/mail/ydk.providers
- from: can't read /var/mail/ydk.models.cisco_ios_xr
- from: can't read /var/mail/datetime
- ./hello-ydk.py: 13: ./hello-ydk.py: Syntax error: "(" unexpected (expecting "then")
Add Comment
Please, Sign In to add comment