Seems like it is a standard practice in yangs (e.g. open-config yang:
https://github.com/openconfig/public/blob/master/release/models/interfaces/openconfig-if-ip.yang)
to augment the same node multiple times.
The spec did not mention anything in this regard.
But the parser throws the following error:
ExpressionError: [module(openconfig-if-ip)] constraint violation for 'augment /oc-if:interfaces/oc-if:interface/oc-if:subinterfaces/oc-if:subinterface' - already defined
Seems like it is a standard practice in yangs (e.g. open-config yang: https://github.com/openconfig/public/blob/master/release/models/interfaces/openconfig-if-ip.yang) to augment the same node multiple times. The spec did not mention anything in this regard. But the parser throws the following error: ExpressionError: [module(openconfig-if-ip)] constraint violation for 'augment /oc-if:interfaces/oc-if:interface/oc-if:subinterfaces/oc-if:subinterface' - already defined