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

Changing operational data in stacked services from XML template

IMHOtep
Level 1
Level 1

 

Hi,
I created two stacked services "top" and "bottom" where "bottom" contains operational data in YANG model and "top" manages it (but northbound RESTconf requests don't).

bottom.yang:
leaf usedByTopService {
config false;
tailf:cdb-oper {
tailf:persistent true;
}
type boolean;
default false;
}
}

Then I create a service "top" that configures bottom

configure-bottom-service.xml:
<config-template xmlns="http://tail-f.com/ns/config/1.0">
<services xmlns="http://tail-f.com/ns/ncs">
<bottom xmlns="http://com/ncs/service/bottom">
<id>{$serviceID}</id>
<usedByTopService>true</usedByTopService>
</bottom>
</services>
</config-template>

Generally speaking everything works fine and I have no issue here. Bottom service re-deploys when top service changes usedByTopService option and implements what is expected when option is enabled.

My questions are:
- whether modifying operational data from XML template is a correct approach (as I could not find such an example in documentation)?
- is it expected that bottom service re-deployes configuration delta when "operational data" change?

0 Replies 0