Getting ready

This recipe will only require a CTMS device. If you don't have one, you can use the CMTS emulator provided by the PCCM project.

We will be using this emulator within this recipe. For those who don't need it, please go directly to step 4 given in the next section.

We previously introduced the Postman tool and Postman collection. For this recipe, we will also use a Postman collection, https://www.getpostman.com/collections/e58cca444488dd90753b, that provides all the required APIs. This collection requires a Postman environment, which can be fetched from https://github.com/jgoodyear/OpenDaylightCookbook/blob/master/chapter3/chapter3-recipe6/PCMM_Sample_Local.postman_environment. A Postman environment lets you set up default values. Copy and paste the raw data into the import section. Then on the top-right, there is a drop-down box where you can select the environment. Choose the PCMM sample local. By clicking on the right button (the one that looks like an eye) you will see the content of that environment: