Add new handling options for the snmp provisioning metadata adapter

Description

The current implemented behavior is to create a results object that contains data from the aforementioned scan. Then add in all of the current node's metadata excluding the "snmp" context. Then write that metadata back to the node.

This behavior ends up with a "REPLACE" mentality.

We need to include an "ADD/UPDATE" option. This would walk through the results and either update an existing key with a new value or add a new key/value pair if the key does not exist.

The behavior would be selected with "REPLACE" as default and the "ADD/UPDATE" as a secondary option. As such the goal of the adapter does not change.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Sean Torres September 27, 2022 at 12:46 AM

Merged into branch release-30.x

Sean Torres September 6, 2022 at 7:22 AM

Done

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created September 6, 2022 at 4:06 AM
Updated September 27, 2022 at 12:46 AM
Resolved September 27, 2022 at 12:46 AM