public interface VplsConfigService
| Modifier and Type | Field and Description |
|---|---|
static Class<VplsAppConfig> |
CONFIG_CLASS |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
static final Class<VplsAppConfig> CONFIG_CLASS
void addVpls(String vplsName, Set<String> ifaces, String encap)
vplsName - the name of the VPLSifaces - the interfaces associated with the VPLSencap - the encapsulation typevoid removeVpls(String vplsName)
vplsName - the name of the VPLS to be removedvoid addIface(String vplsName, String iface)
vplsName - the name of the VPLSiface - the network interface to be added to the VPLSvoid setEncap(String vplsName, String encap)
vplsName - the name of the VPLSencap - the encapsulation used (i.e. MPLS or VLAN) ororg.onosproject.net.EncapsulationType encap(String vplsName)
vplsName - the name of the VPLSvoid removeIface(String iface)
iface - the network interface to be removed from the VPLSvoid cleanVplsConfig()
Set<String> vplsAffectedByApi()
Set<Interface> allIfaces()
Set<Interface> ifaces()
Set<Interface> ifaces(String vplsName)
vplsName - the name of the VPLSSet<String> vplsNamesOld()
com.google.common.collect.SetMultimap<String,Interface> ifacesByVplsName()
com.google.common.collect.SetMultimap<String,Interface> ifacesByVplsName(org.onlab.packet.VlanId vlan, org.onosproject.net.ConnectPoint connectPoint)
vlan - the VLAN IdconnectPoint - the connect point