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

RestconfServiceprovider api for secure connections

ydkdev
Level 1
Level 1

I am trying use the RestconfServiceprovider API for secure connection to rest-server.

provider = RestconfServiceProvider(repo=repository,
                 address="10.11.5.5,
                 port=443,
                 username="admin",
                 password="admin",
                  encoding=EncodingFormat.JSON)

crud = CRUDService()
ifs = oc_if.Interfaces()
intf = oc_if.Interfaces.Interface()
intf.name="eth0"
ifs.interface.append(intf)
all_ifs = crud.read(provider, ifs)

rest-server error:


#: rest-server 2020/02/24 20:44:50 http: TLS handshake error from 10.14.8.105:38676: tls: first record does not look like a TLS handshake
#: rest-server 2020/02/24 20:44:50 http: TLS handshake error from 10.14.8.105:38678: tls: first record does not look like a TLS handshake

 

1.  Is this API supported for the generated yang APIs.

2.  How to set this request as secure. 

3.  Are there any examples for restconfserviceprovider usage.

Thanks

1 Reply 1

yangorelik
Spotlight
Spotlight

The issue is that YDK currently does not support secure connection to Restconf server. This issue was documented on GitHub, but, so far there are no resources assigned for its resolution.

Yan Gorelik
YDK Solutions