We use nso to configure juniper junos routers via netconf ned.
We have a service template to apply interface egress shaper, which is equivalent to the below junos cli command:
set class-of-service interfaces xe-0/0/10 unit 2819 shaping-rate 1g
The service template has this section:
<class-of-service>
<interfaces>
<interface>
<name>{interface}</name>
<unit>
<name>{unit}</name>
<shaping-rate>
<rate>{shapingrate}</rate>
</shaping-rate>
</unit>
</interface>
</interfaces>
</class-of-service>
1g is fed into yang attribute shapingrate by user.
when the said nso service is deleted, nso will remove the above command. However in junos, below command is invalid
"delete class-of-service interfaces xe-0/0/10 unit 2819 shaping-rate 1g"
The accepted command by junos cli is
a - "delete class-of-service interfaces xe-0/0/10 unit 2819 shaping-rate"
or
b - "delete class-of-service interfaces xe-0/0/10 unit 2819 shaping-rate 1000000"
Is there a way to instruct NSO to operate in "option a" manner, for "class-of-service interfaces xxx unit xx shaping-rate" command only, when deleting a service, don't delete its leaf value but rather the leaf node?