Is this a bug?
When creating a network using the following API endpoint, a trailing newline is appended somewhere by Proxmox. It is not in the input value string.
Here is the JSON response from this API endpoint which shows the extraneous
When creating a network using the following API endpoint, a trailing newline is appended somewhere by Proxmox. It is not in the input value string.
POST /api2/json/nodes/{node}/network
Here is the JSON response from this API endpoint which shows the extraneous
\n
in the comments field.
JSON:
{'bridge_stp': 'off',
'active': 1,
'comments': 'LAN: research\n',
'priority': 11,
'iface': 'vmbr1000',
'method': 'manual',
'bridge_fd': '0',
'autostart': 1,
'families': ['inet'],
'type': 'bridge',
'bridge_ports': '',
'method6': 'manual'}