cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

97
Views
0
Helpful
1
Replies
khgrant
Cisco Employee

URGENT Problem Python API Threading

 

Hi Community,

 

 

I need to know for a project that’s currently being deployed, how to correctly implement Threading with NSO using python api.

 

We use to have it create transaction handle for each device it was configuring but that that seems to make it configure the devices sequentially.

 

 

Is there a way to make NSO configure multiple devices simultaneously using the python api?

 

 

If I use one transaction I presume that if it fails it will try rollback the transaction on every device?

 

 

 

Regards,

 

 

Elliot.

 

1 ACCEPTED SOLUTION

Accepted Solutions
khgrant
Cisco Employee

 

> Hi Community,

 

>

 

> I need to know for a project that’s currently being deployed, how to

 

> correctly implement Threading with NSO using python api.

 

> We use to have it create transaction handle for each device it was

 

> configuring but that that seems to make it configure the devices

 

> sequentially.

 

 

Yes.

 

 

>

 

> Is there a way to make NSO configure multiple devices simultaneously

 

> using the python api?

 

 

Yes - if you create one transaction, that touches multiple devices, they will all be configured concurrently.

 

This has nothing to do with Python, same behaviour regardless of northbound API used.

 

 

>

 

> If I use one transaction I presume that if it fails it will try

 

> rollback the transaction on every device?

 

 

Correct

 

 

/klacke

 

View solution in original post

1 REPLY 1
khgrant
Cisco Employee

 

> Hi Community,

 

>

 

> I need to know for a project that’s currently being deployed, how to

 

> correctly implement Threading with NSO using python api.

 

> We use to have it create transaction handle for each device it was

 

> configuring but that that seems to make it configure the devices

 

> sequentially.

 

 

Yes.

 

 

>

 

> Is there a way to make NSO configure multiple devices simultaneously

 

> using the python api?

 

 

Yes - if you create one transaction, that touches multiple devices, they will all be configured concurrently.

 

This has nothing to do with Python, same behaviour regardless of northbound API used.

 

 

>

 

> If I use one transaction I presume that if it fails it will try

 

> rollback the transaction on every device?

 

 

Correct

 

 

/klacke

 

Create
Recognize Your Peers
Content for Community-Ad