hi, I am trying to write a simple Python program to read BGP config from my router and i keep getting errors as follows:
/home/mkabbara/env/bin/python3 /root/PycharmProjects/pythonProject/test3.py Traceback (most recent call last): File "/root/PycharmProjects/pythonProject/test3.py", line 22, in <module> result = crud.read_config(self='172.16.1.71', provider=sp_instance, read_filter=bgp) File "/home/mkabbara/env/lib64/python3.6/site-packages/ydk/services/crud_service.py", line 63, in read_config return _crud_read(provider, read_filter, True, self._crud.read_config) AttributeError: 'str' object has no attribute '_crud'
Process finished with exit code 1
the python program looks like this
from ydk.models.openconfig import openconfig_bgp from ydk.providers import NetconfServiceProvider from ydk.services import CRUDService as crud from ydk.types import Filter, Config from ydk.models.openconfig import openconfig_bgp, openconfig_interfaces
# First, create the top-level Bgp() object bgp = openconfig_bgp.Bgp()
# Populate the values for the global config object bgp.global_.config.as_ = 1 bgp.global_.config.router_id = '172.16.1.71' # Call the CRUD create on the top-level bgp object # (assuming you have already instantiated the service and provider) result = crud.read_config(self='172.16.1.71', provider=sp_instance, read_filter=bgp)
I guess i am not using the crud.read service properly.
Difference between USGMII and USXGMII:
USGMII is used for 8x10M/100M/1GE network ports, with each port maximum speed of 1GE. USXGMII-Single Port version can be used to support ONE network port with 10M/100M/1G/2.5G/5G/10G data rates
USGMII is used...
Hi, how to execute linux-commands (which are executeable directly in the guestshell) from IOS-XE sample :[guestshell@guestshell ~]$ cat test.txt | grep SmartSmart Licensing Status: Smart Licensing is DISABLED[guestshell@guestshell ~]$ exit ...
Hi Everybody! I am trying to get the configuration from a nexus 9000v virtualized in my home lab, I am always getting this error. Exception has occurred: RPCError
File "C:\4_4 Modernizing_Netwo...