How to add a tag without losing the information that was there before?

Kenneth_rf
Here to help

How to add a tag without losing the information that was there before?

Hello,

 

I am trying to make an UPDATE of certain ports of all the switches in our organization so that they are managed via port_management.

 

I am doing tests and when carrying out the update I have noticed that the configuration that I had before is loaded, that is, I lose the tag that was there before but my intention is to keep it.

 

Any solution via API?

 

Regards,

1 REPLY 1
sungod
A model citizen

In general, where you want to use the API to 'update' an existing element by adding/removing one or more items in it, the method to use is...

 

Read the value of the element into a local variable.

 

Make the required changes to that local copy.

 

Write the updated element value back.

 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.