IPSec-Proposal optional field is required when sending HTTP Post request via API #10590

Closed
opened 2025-12-29 21:33:28 +01:00 by adam · 0 comments
Owner

Originally created by @Toosaman on GitHub (Dec 25, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.10

Python Version

3.10

Steps to Reproduce

  1. Trying to send HTTP POST request to API endpoint:
    /api/vpn/ipsec-proposals/
{
'name': 'aes-192-gcm_3600',
'encryption_algorithm': 'aes-192-gcm',
'sa_lifetime_seconds': '3600'
}

Expected Behavior

Got HTTP status code 201, which means that the object was successfully created.

Observed Behavior

Got the error:

  allow: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
  api_version: '4.1'
  connection: close
  content: '{"authentication_algorithm":["This field is required."]}'
  json:
    authentication_algorithm:
    - This field is required.
Originally created by @Toosaman on GitHub (Dec 25, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.1.10 ### Python Version 3.10 ### Steps to Reproduce 1. Trying to send HTTP POST request to API endpoint: /api/vpn/ipsec-proposals/ ``` { 'name': 'aes-192-gcm_3600', 'encryption_algorithm': 'aes-192-gcm', 'sa_lifetime_seconds': '3600' } ``` ### Expected Behavior Got HTTP status code 201, which means that the object was successfully created. ### Observed Behavior Got the error: ``` allow: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS api_version: '4.1' connection: close content: '{"authentication_algorithm":["This field is required."]}' json: authentication_algorithm: - This field is required. ```
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:33:28 +01:00
adam closed this issue 2025-12-29 21:33:28 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10590