Skip to content

network_device.update_by_id is overwriting exiting values that is not part of the post values #41

@tali1974

Description

@tali1974

Prerequisites

  • [Yes ] Have you tested the operation in the API directly?
  • [ Yes] Do you have the latest SDK version?
  • Review the compatibility matrix before opening an issue.

Describe the bug
I am using the SDK ciscoisesdk. I want to only update network_device_group_list and description all other values should be untouched.
api_.network_device.update_by_id( id="16b867c0-ad7b-11ed-b060-7e0613ef335b", description="API TEST", name=DevName, network_device_group_list=["Device Type#All Device Types#Switches","IPSEC#Is IPSEC Device#No","Location#All Locations"], network_device_iplist=[{"ipaddress":"10.0.0.1", "mask": 32}] )
I am updating a network device from default to "Device Type#All Device Types#Switches" and it's updating it. But it removed all other settings as TACACS Authentication Setting, SNMP Settings and Advanced TrustSec Settings.

Expected behavior
It should only update the values that I have added in the call as shown above description, network_device_group_list should be changed/updated.
Screenshots
image

Environment (please complete the following information):

  • ISE version and patch: 3.1.0.518
  • Python version: Python 3.6.12
  • SDK version: ciscoisesdk 2.0.8
  • OS version:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions