Revision 1772a358 src/ipamm/IPAMManager.cc

View differences:

src/ipamm/IPAMManager.cc
174 174

  
175 175
void IPAMManager::register_address_range_action(IPAMRequest * ir)
176 176
{
177
    std::string action_data;
177 178
    const IPAMManagerDriver * ipammd = setup_request(ir);
178 179

  
179 180
    if (ipammd == 0)
......
181 182
        return;
182 183
    }
183 184

  
184
    ipammd->register_address_range(ir->id, ir->params);
185
    ipammd->register_address_range(ir->id, ir->to_xml64(action_data));
185 186
}
186 187

  
187 188
/* -------------------------------------------------------------------------- */
188 189

  
189 190
void IPAMManager::get_address_action(IPAMRequest * ir)
190 191
{
192
    std::string action_data;
191 193
    const IPAMManagerDriver * ipammd = setup_request(ir);
192 194

  
193 195
    if (ipammd == 0)
......
195 197
        return;
196 198
    }
197 199

  
198
    ipammd->get_address(ir->id, ir->params);
200
    ipammd->get_address(ir->id, ir->to_xml64(action_data));
199 201
}
200 202

  
201 203
/* -------------------------------------------------------------------------- */
202 204

  
203 205
void IPAMManager::allocate_address_action(IPAMRequest * ir)
204 206
{
207
    std::string action_data;
205 208
    const IPAMManagerDriver * ipammd = setup_request(ir);
206 209

  
207 210
    if (ipammd == 0)
......
209 212
        return;
210 213
    }
211 214

  
212
    ipammd->allocate_address(ir->id, ir->params);
215
    ipammd->allocate_address(ir->id, ir->to_xml64(action_data));
213 216
}
214 217

  
215 218
/* -------------------------------------------------------------------------- */
216 219

  
217 220
void IPAMManager::free_address_action(IPAMRequest * ir)
218 221
{
222
    std::string action_data;
219 223
    const IPAMManagerDriver * ipammd = setup_request(ir);
220 224

  
221 225
    if (ipammd == 0)
......
223 227
        return;
224 228
    }
225 229

  
226
    ipammd->free_address(ir->id, ir->params);
230
    ipammd->free_address(ir->id, ir->to_xml64(action_data));
227 231
}
228 232

  
229 233
/* ************************************************************************** */

Also available in: Unified diff