@Service public class VplsConfigImpl extends Object implements VplsConfigService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.net.config.NetworkConfigService |
configService |
protected org.onosproject.core.CoreService |
coreService |
protected InterfaceService |
interfaceService |
protected org.onosproject.net.config.NetworkConfigRegistry |
registry |
CONFIG_CLASS| Constructor and Description |
|---|
VplsConfigImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
active() |
void |
addIface(String vplsName,
String iface)
Adds a network interface to a VPLS.
|
void |
addVpls(String vplsName,
Set<String> ifaces,
String encap)
Adds a VPLS to the configuration.
|
Set<Interface> |
allIfaces()
Retrieves the interfaces without IP configured, so compatible with VPLS,
from the interface service.
|
void |
cleanVplsConfig()
Cleans up the VPLS configuration.
|
protected void |
deactive() |
org.onosproject.net.EncapsulationType |
encap(String vplsName)
Returns the encapsulation type in use for a given VPLS.
|
Map<String,org.onosproject.net.EncapsulationType> |
encapByVplsName()
Returns the VPLS names and associated encapsulation type.
|
Set<Interface> |
ifaces()
Retrieves the interfaces associated to a VPLS.
|
Set<Interface> |
ifaces(String vplsName)
Retrieves the interfaces associated to the VPLS specified.
|
com.google.common.collect.SetMultimap<String,Interface> |
ifacesByVplsName()
Returns the VPLS names and associated interfaces from the configuration.
|
com.google.common.collect.SetMultimap<String,Interface> |
ifacesByVplsName(org.onlab.packet.VlanId vlan,
org.onosproject.net.ConnectPoint connectPoint)
Returns the list of interfaces grouped by VPLS name, given a VLAN Id and
a connect point.
|
void |
removeIface(String iface)
Removes a network interface from a VPLS.
|
void |
removeVpls(String vplsName)
Removes a VPLS from the configuration.
|
void |
setEncap(String vplsName,
String encap)
Sets an encapsulation parameter for a VPLS.
|
Set<String> |
vplsAffectedByApi()
Retrieves the VPLS names modified from CLI.
|
Set<String> |
vplsNames()
Retrieves all VPLS names.
|
Set<String> |
vplsNamesOld()
Retrieves all VPLS names from the old config.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigRegistry registry
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected InterfaceService interfaceService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.config.NetworkConfigService configService
@Activate protected void active()
@Deactivate protected void deactive()
public void addVpls(String vplsName, Set<String> ifaces, String encap)
VplsConfigServiceaddVpls in interface VplsConfigServicevplsName - the name of the VPLSifaces - the interfaces associated with the VPLSencap - the encapsulation typepublic void removeVpls(String vplsName)
VplsConfigServiceremoveVpls in interface VplsConfigServicevplsName - the name of the VPLS to be removedpublic void addIface(String vplsName, String iface)
VplsConfigServiceaddIface in interface VplsConfigServicevplsName - the name of the VPLSiface - the network interface to be added to the VPLSpublic void setEncap(String vplsName, String encap)
VplsConfigServicesetEncap in interface VplsConfigServicevplsName - the name of the VPLSencap - the encapsulation used (i.e. MPLS or VLAN) orpublic void removeIface(String iface)
VplsConfigServiceremoveIface in interface VplsConfigServiceiface - the network interface to be removed from the VPLSpublic void cleanVplsConfig()
VplsConfigServicecleanVplsConfig in interface VplsConfigServicepublic org.onosproject.net.EncapsulationType encap(String vplsName)
VplsConfigServiceencap in interface VplsConfigServicevplsName - the name of the VPLSpublic Set<String> vplsAffectedByApi()
VplsConfigServicevplsAffectedByApi in interface VplsConfigServicepublic Set<Interface> allIfaces()
VplsConfigServiceallIfaces in interface VplsConfigServicepublic Set<Interface> ifaces()
VplsConfigServiceifaces in interface VplsConfigServicepublic Set<Interface> ifaces(String vplsName)
VplsConfigServiceifaces in interface VplsConfigServicevplsName - the name of the VPLSpublic Set<String> vplsNames()
VplsConfigServicevplsNames in interface VplsConfigServicepublic Set<String> vplsNamesOld()
VplsConfigServicevplsNamesOld in interface VplsConfigServicepublic com.google.common.collect.SetMultimap<String,Interface> ifacesByVplsName()
VplsConfigServiceifacesByVplsName in interface VplsConfigServicepublic com.google.common.collect.SetMultimap<String,Interface> ifacesByVplsName(org.onlab.packet.VlanId vlan, org.onosproject.net.ConnectPoint connectPoint)
VplsConfigServiceifacesByVplsName in interface VplsConfigServicevlan - the VLAN IdconnectPoint - the connect pointpublic Map<String,org.onosproject.net.EncapsulationType> encapByVplsName()
VplsConfigServiceencapByVplsName in interface VplsConfigService