Dynamically updating the network device YANG model
Updating the YANG models of a network device, which use the netconf protocol, requires OpenDaylight to make a continuous set of fetching requests to the device. The iterative fetching requests of the data (device YANG models) from the network devices in large-scale networks will impose a load on the network. The YANG PubSub project allows OpenDaylight to request only the updated parts of the YANG models from the network device. In this recipe, we will show you how to use OpenDaylight to register a continuous fetching request with a netconf network device to push updates of the YANG model.
Getting ready
This recipe requires an OpenDaylight Beryllium distribution, the OpenDaylight netconf test tool or a network device with netconf functionality, and YANG push capability, for example, a Cisco IOS-XR device. Also you will need a REST API client and finally you will need to download the recipe folder from this book's GitHub repository.