Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenDaylight serviceprovider not working #987

Open
benny007 opened this issue Jan 16, 2020 · 1 comment
Open

OpenDaylight serviceprovider not working #987

benny007 opened this issue Jan 16, 2020 · 1 comment

Comments

@benny007
Copy link

benny007 commented Jan 16, 2020

Expected Behavior

Load the query when the router is in connected stated in ODL

Current Behavior

Output the following when the router is connected:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: type must be string, but is object

Steps to Reproduce

Register your router to ODL 0.11.1 or 0.8.3, wait for it to be in connected state, see below:

opendaylight-user@root>netconf:list-devices                                                                                                                                                                 
NETCONF ID          | NETCONF IP   | NETCONF Port | Status   
-------------------------------------------------------------
EDG-01-216.BRU1-IXN | 10.1.128.120 | 1830         | connected

Then run the script below

Your Script

import os
import sys
from argparse import ArgumentParser
if sys.version_info > (3,):
 from urllib.parse import urlparse
else:
 from urlparse import urlparse
from ydk.types import Empty
from ydk.services import CRUDService
from ydk.providers import OpenDaylightServiceProvider
import pkg_resources
from ydk.errors import YError
from ydk.types import EncodingFormat
from ydk.path import Repository

repo = Repository("/root/Cisco/odl/odl-11.1")
odl_provider = OpenDaylightServiceProvider(repo, "10.1.20.144", "admin", "admin", 8181, EncodingFormat.XML)

Logs

Enable logging and post the logs below


System Information

Docker image of YDK (0.8.4)

@ygorelik
Copy link
Collaborator

Is this still an issue?
Could you please provide more information including log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants