cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
359
Views
0
Helpful
1
Replies

RestconfServiceProvider doesn't connect to my device

vadigreg
Cisco Employee
Cisco Employee

Hello, I'm trying to connect a restconf provider (in python) to my device. However when I try I get the following error:

2020-06-08 18:59:32,530 - ydk - INFO - Unable to retrieve restconf root. Assuming '/restconf' as the root
2020-06-08 18:59:32,530 - ydk - INFO - Ready to communicate with http://10.51.65.23:443/restconf using http

Traceback (most recent call last):
  File "main.py", line 46, in <module>
    encoding=EncodingFormat.JSON)
RuntimeError: invalid format string

This is my code:

        repo = Repository()
        provider = RestconfServiceProvider(repo=repo,
                                           address=args.restconf.hostname,
                                           port=args.restconf.port,
                                           username=args.restconf.username,
                                           password=args.restconf.password,
                                           encoding=EncodingFormat.JSON)

How can I set protocol to HTTPS?

 

Thanks.

1 Accepted Solution

Accepted Solutions

yangorelik
Spotlight
Spotlight

Hello

This is well known YDK limitation #917, which requires significant new development. Your company would need to come up with some resources to support this new development.

Yan Gorelik
YDK Solutions

View solution in original post

1 Reply 1

yangorelik
Spotlight
Spotlight

Hello

This is well known YDK limitation #917, which requires significant new development. Your company would need to come up with some resources to support this new development.

Yan Gorelik
YDK Solutions
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: