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

NetconfService performance

MahdiR
Level 1
Level 1

What is the usual speed for NetconfService to get information from a model?

For me NetconfSercie.get() takes about 14 second, is this normal?

Is there a faster way to do it than the way below?

 

from ydk.services.netconf_service import NetconfService
from ydk.providers.netconf_provider import NetconfServiceProvider
from ydk.models.cisco_ios_xe.Cisco_IOS_XE_interfaces_oper import Interfaces

provider = NetconfServiceProvider(address=address, username=username, password=password)

service = NetconfService()

model = Interfaces()

interfaces = service.get(provider=provider, read_filter=model)

for interface in interfaces.interface:
    print(interface.name)
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: