sol1 / icingaweb2-module-netbox

Netbox importer for director, and integration with netbox
31 stars 6 forks source link

Import custom field choices #44

Closed joshsol1 closed 1 month ago

joshsol1 commented 1 month ago

doing the thing

sol1-matt commented 1 month ago

create icinga group objects from custom field choice set extra_choices values 1 row per value

       {
            "id": 3,
            "display": "icinga_dict_type choices",
            "name": "icinga_dict_type choices",
            "description": "",
            "base_choices": null,
            "extra_choices": [
                [
                    "check_ssl_cert",
                    "Check SSL Cert"
                ],
                [
                    "default",
                    "Default"
                ],
                [
                    "http",
                    "Check HTTP"
                ]
            ],
            "order_alphabetically": true,
            "choices_count": 3,
        },

need to iterate the custom field choice set and extra_choices values

sol1-matt commented 1 month ago

this is ready for testing

sol1-matt commented 1 month ago

@joshsol1 said this was ready for release