Search in sources :

Example 6 with IgnoreDhcpConfig

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);
    }
}
Also used : IgnoreDhcpConfig(org.onosproject.dhcprelay.config.IgnoreDhcpConfig) HostAutoRelearnConfig(org.onosproject.dhcprelay.config.HostAutoRelearnConfig) DefaultDhcpRelayConfig(org.onosproject.dhcprelay.config.DefaultDhcpRelayConfig) IndirectDhcpRelayConfig(org.onosproject.dhcprelay.config.IndirectDhcpRelayConfig)

Aggregations

JsonNode (com.fasterxml.jackson.databind.JsonNode)4 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)4 ImmutableList (com.google.common.collect.ImmutableList)4 ImmutableSet (com.google.common.collect.ImmutableSet)4 Lists (com.google.common.collect.Lists)4 Maps (com.google.common.collect.Maps)4 Sets (com.google.common.collect.Sets)4 Streams (com.google.common.collect.Streams)4 Resources (com.google.common.io.Resources)4 IOException (java.io.IOException)4 ByteBuffer (java.nio.ByteBuffer)4 ArrayList (java.util.ArrayList)4 Collection (java.util.Collection)4 Dictionary (java.util.Dictionary)4 List (java.util.List)4 Map (java.util.Map)4 Optional (java.util.Optional)4 Set (java.util.Set)4 Collectors (java.util.stream.Collectors)4 Charsets (org.apache.commons.io.Charsets)4