The interface-id parameter is now properly set at distinct inheritance
levels. For example, if it is specified at shared network level but not
at the subnet level, the value stored in the db for the subnet is NULL
and it is non-null at shared network level.
// Create the binding holding interface_id.
MySqlBindingPtr interface_id_binding = MySqlBinding::createNull();
- auto opt_iface_id = subnet->getInterfaceId();
+ auto opt_iface_id = subnet->getInterfaceId(Network::Inheritance::NONE);
if (opt_iface_id) {
auto iface_id_data = opt_iface_id->getData();
if (!iface_id_data.empty()) {
// Create the binding holding interface_id.
MySqlBindingPtr interface_id_binding = MySqlBinding::createNull();
- auto opt_iface_id = shared_network->getInterfaceId();
+ auto opt_iface_id = shared_network->getInterfaceId(Network::Inheritance::NONE);
if (opt_iface_id) {
auto iface_id_data = opt_iface_id->getData();
if (!iface_id_data.empty()) {