Skip to content

Missing advanced field from HAProxy backend servers #682

@sherif-fanous

Description

@sherif-fanous

First, thanks for the awesome API 🙏🏼

Describe the bug

I have an HAProxy backend setup with multiple servers in an active/standby setup.

To setup the standby servers I specify the backup directive in the Advanced textbox within the GUI as per the following screenshot

Image

This field is not returned by the API GET /api/v2/services/haproxy/backends. Only the following fields are returned

{
  'parent_id': 18,
  'id': 1,
  'name': 'redacted',
  'status': 'active',
  'address': 'redacted',
  'port': '80',
  'weight': 1,
  'ssl': False,
  'sslserververify': False,
  'serverid': 790
}

Because this field is missing when I later on in the code update this backend using the PATCH /api/v2/services/haproxy/backend endpoint I end up with the servers without the backup directive

Expected behavior
The endpoints that retrieve backends should retrieve all the backend server fields

pfSense Version & Package Version:

  • pfSense Version: 24.11
  • Package Version: 2.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues or PRs that enhance existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions