Pattern extension - Adding fields to table already populated

Miguel Sanchez1
Tera Contributor

Hello everyone,

We have created a pattern extension for routers to make some customization. Basically we are trying to get the description from the device's interfaces and populate the field "short_description" in table "dscy_router_interface". Since that table has already been populated by the OOB pattern we only need to add the values for that specific field but haven't found a way to do it.

We only need to add the description and don't want to wipe out the current content of the table because there are already relations with other tables.

Is there a way to iterate through that table and assign to each router interface the correct description based on the interface index (that index works as the identifier of the interface)?

Thanks in advance for the help!

5 REPLIES 5

Hey @Miguel Sanchez1 ,

 We are currently trying to implement a similar use case where we need to update the ifAlias with the short description of the router interface.

Could you please let us know if you were able to achieve this? If so, it would be really helpful if you could share the approach or any possible solution.

Appreciate your guidance on this.

Thanks in advance!