-
Problem report
-
Resolution: Declined
-
Trivial
-
None
-
6.4.3
-
None
Steps to reproduce:
- Create host with IPMI interface
- Try to update host via API with two interfaces (exeisting IPMI + new SNMP)
Result:
Host updated, but new (SNMP) interface is missing.
JSON in my case:
{
"inventory_mode": 1,
"interfaces": [
{
"type": 3,
"port": 623,
"useip": 1,
"main": 1,
"dns": "dns",
"ip": "ip"
},
{
"type": 2,
"useip": 1,
"port": 161,
"details": {
"version": 2,
"community": "{$SNMP_COMMUNITY}"
},
"main": 1,
"dns": "dns",
"ip": "ip"
}
],
"templates": [
"temaplate1"
],
"name": "name",
"host": "host",
"proxy_hostid": "proxy_hostid",
"groups": [
"grp1",
"grp2",
"grp3"
],
"inventory": {
"site_city": "site_city",
"site_address_a": "site_address_a",
"location": "location",
"vendor": "vendor",
"deployment_status": "deployment_status",
"site_state": "site_state",
"site_notes": "site_notes",
"model": "model",
"site_country": "site_country",
"url_a": "url_a",
"type": "type",
"site_rack": "site_rack",
"contact": "contact",
"name": "name",
"location_lon": "location_lon",
"type_full": "type_full",
"site_zip": "site_zip",
"location_lat": "location_lat",
"serialno_a": "serialno_a"
},
"status": 1
}