use of org.onosproject.dhcprelay.config.IgnoreDhcpConfig in project onos by opennetworkinglab.
the class DhcpRelayManager method updateConfig.
/**
* Updates DHCP relay app configuration.
*/
private void updateConfig() {
DefaultDhcpRelayConfig defaultConfig = cfgService.getConfig(appId, DefaultDhcpRelayConfig.class);
IndirectDhcpRelayConfig indirectConfig = cfgService.getConfig(appId, IndirectDhcpRelayConfig.class);
IgnoreDhcpConfig ignoreDhcpConfig = cfgService.getConfig(appId, IgnoreDhcpConfig.class);
HostAutoRelearnConfig hostAutoRelearnConfig = cfgService.getConfig(appId, HostAutoRelearnConfig.class);
if (defaultConfig != null) {
updateConfig(defaultConfig);
}
if (indirectConfig != null) {
updateConfig(indirectConfig);
}
if (ignoreDhcpConfig != null) {
updateConfig(ignoreDhcpConfig);
}
if (hostAutoRelearnConfig != null) {
updateConfig(hostAutoRelearnConfig);
}
}
Aggregations