Establishing a YANG-push Subscription with Cisco IOS XE Devices

YANG-push Subscription with Cisco IOS XE Devices

Question

Which tag is required when establishing a YANG-push subscription with a Cisco IOS XE device?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/1612/b_1612_programmability_cg/model_driven_telemetry.html

When establishing a YANG-push subscription with a Cisco IOS XE device, the tag that is required is <yp:subscription-id>.

YANG-push is a protocol used to subscribe to and receive updates from YANG-modeled data on a network device. YANG (Yet Another Next Generation) is a data modeling language used to define the structure and semantics of data for network management protocols.

When setting up a YANG-push subscription, the device will provide a subscription identifier (subscription-id) that uniquely identifies the subscription for the client. This identifier is used in subsequent operations to manage the subscription, such as modifying or deleting it.

The <yp:subscription-id> tag is used to specify the subscription identifier in the YANG-push subscription request. This tag is included in the <create-subscription> message that is sent from the client to the device.

The other tags listed in the answer options are also used in YANG-push subscriptions:

  • <yp:period> is used to specify the interval at which updates should be sent from the device to the client.
  • <yp:subscription-result> is used to provide the status of a subscription request, indicating whether it was successful or not.
  • <yp:xpath-filter> is used to specify a filter expression that determines which data updates should be sent to the client.

However, the question specifically asks for the tag that is required, and that is <yp:subscription-id>.