Class InterfaceConfig
- java.lang.Object
- 
- org.onosproject.net.config.Config<ConnectPoint>
- 
- org.onosproject.net.config.basics.InterfaceConfig
 
 
- 
 @Beta public class InterfaceConfig extends Config<ConnectPoint> Configuration for interfaces.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.onosproject.net.config.ConfigConfig.FieldPresence
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringIPSstatic java.lang.StringMACstatic java.lang.StringNAMEstatic java.lang.StringVLANstatic java.lang.StringVLAN_NATIVEstatic java.lang.StringVLAN_TAGGEDstatic java.lang.StringVLAN_UNTAGGED
 - 
Constructor SummaryConstructors Constructor Description InterfaceConfig()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInterface(Interface intf)Adds an interface to the config.java.util.Set<Interface>getInterfaces()Retrieves all interfaces configured on this port.booleanisValid()Indicates whether or not the backing JSON node contains valid data.voidremoveInterface(java.lang.String name)Removes an interface from the config.- 
Methods inherited from class org.onosproject.net.config.Configapply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toString
 
- 
 
- 
- 
- 
Field Detail- 
NAMEpublic static final java.lang.String NAME - See Also:
- Constant Field Values
 
 - 
IPSpublic static final java.lang.String IPS - See Also:
- Constant Field Values
 
 - 
MACpublic static final java.lang.String MAC - See Also:
- Constant Field Values
 
 - 
VLANpublic static final java.lang.String VLAN - See Also:
- Constant Field Values
 
 - 
VLAN_UNTAGGEDpublic static final java.lang.String VLAN_UNTAGGED - See Also:
- Constant Field Values
 
 - 
VLAN_TAGGEDpublic static final java.lang.String VLAN_TAGGED - See Also:
- Constant Field Values
 
 - 
VLAN_NATIVEpublic static final java.lang.String VLAN_NATIVE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isValidpublic boolean isValid() Description copied from class:ConfigIndicates whether or not the backing JSON node contains valid data.Default implementation returns true. Subclasses are expected to override this with their own validation. Implementations are free to throw a RuntimeException if data is invalid. - Overrides:
- isValidin class- Config<ConnectPoint>
- Returns:
- true if the data is valid; false otherwise
 
 - 
getInterfacespublic java.util.Set<Interface> getInterfaces() throws ConfigException Retrieves all interfaces configured on this port.- Returns:
- set of interfaces
- Throws:
- ConfigException- if there is any error in the JSON config
 
 - 
addInterfacepublic void addInterface(Interface intf) Adds an interface to the config.- Parameters:
- intf- interface to add
 
 - 
removeInterfacepublic void removeInterface(java.lang.String name) Removes an interface from the config.- Parameters:
- name- name of the interface to remove
 
 
- 
 
-