Hi,
I have some problems with the combine networks API.
The API works as well on my test dashboard, with the same network name as the test network on the customer dashboard. On the customer dashboard, the network are bind to a template with an enrollment string "magasins".
When i try to combine the two networks without an enrollment string, no problems, but when the network are bind to the template, the api return an 400 error with this :
{"errors":["PG::UniqueViolation: ERROR: duplicate key value violates unique constraint \"node_groups_enrollment_string_lowercase_index\"\nDETAIL: Key (lower(enrollment_string))=(magasins-appliance) already exists.\n: UPDATE \"node_groups\" SET \"enrollment_string\" = 'magasins-appliance', \"alert_settings_json\" = '{\"amp_malware_detected\":true,\"amp_malware_blocked\":false,\"appliance_down\":true,\"failover_event\":false,\"dhcp_no_leases\":false,\"rogue_ap\":false,\"rogue_dhcp\":false,\"ip_conflict\":false,\"cellular_up_down\":true,\"cellular_up\":true,\"cellular_down\":true,\"client_connectivity\":true,\"vrrp\":true,\"vpn_connectivity_change\":true,\"settings_changed\":false,\"usage_alert\":false,\"appliance_timeout\":60,\"usage_alert_period\":1200,\"usage_alert_threshold\":104857600,\"amp_malware_detected_preferences\":\"other\",\"amp_malware_detected_preferences_text\":\"[\\\"MAIL\\\"]\",\"appliance_down_preferences\":\"other\",\"appliance_down_preferences_text\":\"[\\\"MAIL\\\",\\\"MAIL\\\",\\\"MAIL\\\"]\",\"failover_event_preferences\":\"other\",\"failover_event_preferences_text\":\"[\\\"MAIL\\\"]\",\"cellular_up_down_preferences\":\"other\",\"cellular_up_down_preferences_text\":\"[\\\"MAIL\\\"]\",\"cellular_up_preferences\":\"other\",\"cellular_up_preferences_text\":\"[\\\"MAIL\\\"]\",\"cellular_down_preferences\":\"other\",\"cellular_down_preferences_text\":\"[\\\"MAIL\\\"]\",\"client_connectivity_preferences\":\"other\",\"client_connectivity_preferences_text\":\"[\\\"MAIL\\\"]\",\"vrrp_preferences\":\"other\",\"vrrp_preferences_text\":\"[\\\"MAIL\\\"]\",\"vpn_connectivity_change_preferences\":\"other\",\"vpn_connectivity_change_preferences_text\":\"[\\\"MAIL\\\"]\"}', \"updated_at\" = '2019-12-02 19:04:58.830607' WHERE \"node_groups\".\"type\" IN ('WiredGroup') AND \"node_groups\".\"id\" = 659214395456365508"]}
I replace the mail address in the error message by "MAIL". There are many différent mail address, no just one.
I try différent values for the enrollmentString parameters but i have always the same error.
Today when i try with the API or with the GUI, i get this error message :
{
"errors": [
"ActiveRecord::RecordNotSaved"
]
}
The problem seems to come from the enrollment string of the template but i can't delete the enrollmentString...
If someone have an idea to resolve this problem...
Thanks