01-09-2019 05:31 AM - edited 03-01-2019 04:15 AM
How does the service mapping handle the sequencing of steps in NSO?
For example, I am developing an NMS application to create a LA(Link Aggregation) which, I have defined as a service.
There are a sequence of operations expected from device side in the following order for LA creation becoming operational.
- Enable LA in the switch
- Create LA
- Associate port to LA
- Associate VLAN to LA
As I have defined a single service to create the LA, the above operation need to be in sequence.
Can it be achieved through NSO?
Thus far,
- I am thinking about breaking up the LA creation services to 4 different services
- Or using Reactive Fastmap for each of the above steps.
Can anyone give advantage/disadvantage/better option?
Regards
Sarath
Solved! Go to Solution.
01-09-2019 04:43 PM
01-09-2019 05:36 AM
01-09-2019 07:52 AM
If the ordering is required by the device then the NED will send the commands in the right order (or should, if not you should file a bug report).
If the ordering is just for your own/external needs then you should probably look in to have a reactive FASTMAP loop.
01-09-2019 04:27 PM
Thanks Rossavik and hniska for the reply.
Curious to know how the NED will order the sequencing.
Should the data model(In my case, Yang) contain the ordering dependencies ?
If yes, how is such dependency added in a YANG.
Regards
Sarath
01-09-2019 04:43 PM
01-10-2019 01:13 AM
Thanks Joepak for the reply.
Isn't ordered-by only applicable to a leaf list?
I could not get around how it could have an impact on this use case.
For e.g.,
- Enable LA in the switch
- Create LA
When I create an LA(Set a list of attributes), it requires that the Enable LA(boolean value) is set to true.
If I create a service with attributes required for both these operations(Enable LA and Create LA), how can we sequence it so that Enable LA is executed first and then the Create LA.
I am sorry if the question is naive. I am a beginner. :-)
Regards
Sarath
01-10-2019 03:24 PM
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 NSO Developer community: