public class ContainerConfig extends org.opendaylight.controller.configuration.ConfigurationObject implements Serializable
| Constructor and Description |
|---|
ContainerConfig()
Default constructor needed by Gson.
|
ContainerConfig(ContainerConfig config) |
ContainerConfig(String container,
String vlan,
List<String> portList,
List<ContainerFlowConfig> containerFlows)
Constructor for the ContainerConfig.
|
| Modifier and Type | Method and Description |
|---|---|
org.opendaylight.controller.sal.utils.Status |
addContainerFlows(List<ContainerFlowConfig> containerFlowConfigs)
Add the proposed list of container flow configurations to this container
configuration.
|
org.opendaylight.controller.sal.utils.Status |
addNodeConnectors(List<String> ncList) |
boolean |
equals(Object obj) |
String |
getContainer() |
String |
getContainerAdminRole()
Return the well known administrator role for this container
|
ContainerFlowConfig |
getContainerFlowConfig(String name) |
List<ContainerFlowConfig> |
getContainerFlowConfigs()
Returns the list of container flows configured for this container
|
List<ContainerFlowConfig> |
getContainerFlowConfigs(Set<String> names) |
List<String> |
getContainerFlowConfigsNames() |
List<ContainerFlowConfig> |
getContainerFlows() |
List<org.opendaylight.controller.sal.core.ContainerFlow> |
getContainerFlowSpecs() |
String |
getContainerGroupName() |
String |
getContainerName()
Returns the container name.
|
String |
getContainerOperatorRole()
Return the well known operator role for this container
|
List<org.opendaylight.controller.sal.core.NodeConnector> |
getPortList()
Parse the port list in several NodeConnector descriptor.
|
List<String> |
getPorts()
Returns the configured ports.
|
static String |
getRegexname() |
static long |
getSerialversionuid() |
String |
getStaticVlan() |
short |
getStaticVlanValue()
Returns Vlan value in short
|
String |
getVlanTag()
Returns the Vlan tag.
|
boolean |
hasFlowSpecs()
Returns whether this Container configuration object has any flow specs specified
|
int |
hashCode() |
boolean |
hasNodeConnectors()
Returns whether this Container configuration object has any ports specified
|
boolean |
matchName(String name)
Matches container name against passed parameter.
|
static List<org.opendaylight.controller.sal.core.NodeConnector> |
nodeConnectorsFromString(List<String> nodeConnectorStrings) |
org.opendaylight.controller.sal.utils.Status |
removeContainerFlows(List<ContainerFlowConfig> containerFlowConfigs) |
org.opendaylight.controller.sal.utils.Status |
removeContainerFlows(Set<String> names) |
org.opendaylight.controller.sal.utils.Status |
removeNodeConnectors(List<String> ncList) |
void |
setContainer(String container) |
void |
setContainerFlows(List<ContainerFlowConfig> containerFlows) |
void |
setPorts(List<String> ports) |
void |
setStaticVlan(String staticVlan) |
String |
toString() |
org.opendaylight.controller.sal.utils.Status |
validate()
Checks if this is a valid container configuration
|
org.opendaylight.controller.sal.utils.Status |
validateContainerFlowModify(List<ContainerFlowConfig> cFlowConfigs,
boolean delete) |
static org.opendaylight.controller.sal.utils.Status |
validateNodeConnectors(List<String> connectorList) |
public ContainerConfig()
public ContainerConfig(String container, String vlan, List<String> portList, List<ContainerFlowConfig> containerFlows)
container - Name of the container in this configurationvlan - vlan assigned to this containernodeName - the name of the node assigned to the container from this
configurationports - the list of NodeConnectors on the Node belonging to the containerpublic ContainerConfig(ContainerConfig config)
public String getContainer()
public void setContainer(String container)
public String getStaticVlan()
public void setStaticVlan(String staticVlan)
public List<ContainerFlowConfig> getContainerFlows()
public void setContainerFlows(List<ContainerFlowConfig> containerFlows)
public static long getSerialversionuid()
public static String getRegexname()
public String getContainerName()
public String getVlanTag()
public List<String> getPorts()
public List<ContainerFlowConfig> getContainerFlowConfigs()
public boolean matchName(String name)
name - name of the container to be matchedpublic List<org.opendaylight.controller.sal.core.NodeConnector> getPortList()
public org.opendaylight.controller.sal.utils.Status validate()
public static org.opendaylight.controller.sal.utils.Status validateNodeConnectors(List<String> connectorList)
public static List<org.opendaylight.controller.sal.core.NodeConnector> nodeConnectorsFromString(List<String> nodeConnectorStrings)
public short getStaticVlanValue()
public org.opendaylight.controller.sal.utils.Status addNodeConnectors(List<String> ncList)
public org.opendaylight.controller.sal.utils.Status removeNodeConnectors(List<String> ncList)
public org.opendaylight.controller.sal.utils.Status validateContainerFlowModify(List<ContainerFlowConfig> cFlowConfigs, boolean delete)
public ContainerFlowConfig getContainerFlowConfig(String name)
public org.opendaylight.controller.sal.utils.Status addContainerFlows(List<ContainerFlowConfig> containerFlowConfigs)
containerFlowConfigs - the proposed list of container flow configuration objects to
add to this container configuration objectpublic org.opendaylight.controller.sal.utils.Status removeContainerFlows(List<ContainerFlowConfig> containerFlowConfigs)
public org.opendaylight.controller.sal.utils.Status removeContainerFlows(Set<String> names)
public List<ContainerFlowConfig> getContainerFlowConfigs(Set<String> names)
public boolean hasNodeConnectors()
public boolean hasFlowSpecs()
public List<org.opendaylight.controller.sal.core.ContainerFlow> getContainerFlowSpecs()
public String getContainerAdminRole()
public String getContainerOperatorRole()
public String getContainerGroupName()
Copyright © 2015. All Rights Reserved.