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