Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Request for iosxe_restconf REST Delete option #79

Open
eckdd opened this issue Jan 25, 2023 · 2 comments
Open

Request for iosxe_restconf REST Delete option #79

eckdd opened this issue Jan 25, 2023 · 2 comments

Comments

@eckdd
Copy link

eckdd commented Jan 25, 2023

Hi,

Would like to see a delete/remove options in the iosxe_restconf resource that can ensure items are explicitly not in the config. An example use case would be to use the following to ensure that service call-home is not configured on any devices:

resource "iosxe_restconf" "no_service_call-home" {
for_each = toset([for router in local.routers : router.name])
device = each.key
path = "Cisco-IOS-XE-native:native/service/call-home"
remove = true
}

@danischm
Copy link
Member

This is an interesting use case, though this would fundamentally change the standard resource behavior in terms of create/read/update/delete operations. I am more leaning towards a dedicated resource that attempts to remove the relevant object for create/update/delete operations. What do you think?

@eckdd
Copy link
Author

eckdd commented Jan 30, 2023

A dedicated resource module would probably make more sense. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants