grizzthedj / smart_proxy_ipam

Foreman Smart Proxy plugin for integration with External IPAM providers
GNU General Public License v3.0
18 stars 20 forks source link

request: adding hostname with fqdn to add_ip_to_subnet #55

Closed PawS60 closed 3 years ago

PawS60 commented 3 years ago

phpipam use field hostname in api address controler.

grizzthedj commented 3 years ago

Sorry for the late reply, but I don't understand your request. Could you clarify and/or add more details?

PawS60 commented 3 years ago

in phpipam plugin, function add_ip_to_subnet put in data parameter hostname filled with fqdn here: def add_ip_to_subnet(ip, params) data = { subnetId: params[:subnet_id], ip: ip, description: 'Address auto added by Foreman' } subnet = @api_resource.post('addresses/', data.to_json) json_body = JSON.parse(subnet.body) return nil if json_body['code'] == 201 { error: 'Unable to add IP to External IPAM' } end