Question 1
A service provider is deploying a new L3VPN service using Cisco NSO. The service model requires that when a customer's bandwidth is modified, a corresponding QoS policy on the PE-CE interface must also be updated. The development team wants to ensure this link between service parameters is automatically enforced within the service logic itself, preventing out-of-sync configurations. Which YANG statement, when used correctly within the service model's data definitions, is the most appropriate tool to create this dependency?
Answer and explanation
Correct answer: B
The must statement in YANG is used to define a constraint on a data node. It takes an XPath expression as an argument. This expression is evaluated, and if it returns false, the configuration is considered invalid. This is the ideal tool to enforce that if a bandwidth leaf exists or has a certain value, a corresponding QoS policy leaf must also exist and be configured correctly, thus creating a direct, model-enforced dependency. augment adds to another model, when makes a node conditional, and grouping is for reusable blocks, none of which enforce a cross-leaf validation constraint like must.