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

YDK with openconfig-interfaces issue with NCS5k

sdefriez1
Beginner
Beginner

Hi all,

 

Fairly new to YDK and openconfig Yang models. Trying out some basic testing as below, just want to create a loopback interface on an NCS540 and getting a corruption and abort error. Any ideas on what may be causing this?

 

Type "help", "copyright", "credits" or "license" for more information.
>>> from ydk.services import NetconfService,Datastore
>>> from ydk.providers import NetconfServiceProvider
>>> from ydk.models.openconfig import openconfig_interfaces as int_basics
>>> from ydk.services import CRUDService
>>> import logging
>>> log = logging.getLogger('ydk')
>>> log.setLevel(logging.INFO)
>>> handler = logging.StreamHandler()
>>> formatter = logging.Formatter(("%(asctime)s - %(name)s - %(levelname)s - %(message)s"))
>>> handler.setFormatter(formatter)
>>> log.addHandler(handler)
>>> username = '******'
>>> password = '******'
>>> netconf_port = 22
>>> iosxr_host = '**********'
>>> # Function used to generate the interface configuration
...
>>> netconf_user = NetconfServiceProvider(address=iosxr_host,
... port=netconf_port,
... username=username,
... password=password)
2020-02-11 11:52:49,949 - ydk - INFO - Path where models are to be downloaded:
2020-02-11 11:52:49,965 - ydk - INFO - Connected to on port 22 using ssh with timeout of -1
>>>
>>> intadd = int_basics.Interfaces.Interface()
>>> intadd.name = "Loopback 10"
>>> crud = CRUDService()
>>> crud.create(netconf_user,intadd)
2020-02-11 11:53:15,477 - ydk - INFO - Executing CRUD create operation on [interface[name='Loopback 10']]
2020-02-11 11:53:15,477 - ydk - INFO - Executing 'edit-config' RPC on [interface[name='Loopback 10']]
double free or corruption (!prev)
Aborted (core dumped)

0 Replies 0
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:

Recognize Your Peers