Skip to content

Possibility to persist id's in ipsec #599

@mdepedrof

Description

@mdepedrof

I know that due to limitations in the xml management, the object_id is not persisted. However, in the IPSec section there is already a value that is persisted and it is the ikeid for phase1 and the uniqueid for phase2. These values are used by the GUID to edit or delete an ipsec tunnel. I think it would be great to be able to use these identifiers as Object_id as it would eliminate a lot of headaches.

My use case: I have to create more than 2000 tunnels in several pfsense apliances and in order to do it via api if I were to use the phase1 endpoint in singular, every time I delete a tunnel I have to recreate ALL tunnels in the collection. To avoid this I have to use the phase1s?limit=1&ikeid=value endpoints to be able to locate and manage the tunnel in question without affecting the rest. This works fine for me, but the problem is that these endpoints query all the elements. As there are more and more elements, the api gets more and more saturated just to find a single element that I know has a certain ikeid (or a uniqueid in the case of phase2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogIssues backlogged for inclusion in future releasesfeature requestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions