@Service public class CordFabricManager extends Object implements FabricService
| Modifier and Type | Field and Description |
|---|---|
protected org.onosproject.core.CoreService |
coreService |
protected org.onosproject.net.device.DeviceService |
deviceService |
protected org.onosproject.net.flowobjective.FlowObjectiveService |
flowObjectiveService |
| Constructor and Description |
|---|
CordFabricManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addVlan(FabricVlan vlan)
Remaps a vlan to the specified ports.
|
void |
deactivate() |
List<FabricVlan> |
getVlans()
Returns the vlan to port mapping for all vlans/ports configured in the
fabric.
|
void |
removeVlan(org.onlab.packet.VlanId vlanId)
Removes a vlan from all ports in the fabric.
|
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.core.CoreService coreService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.flowobjective.FlowObjectiveService flowObjectiveService
@Reference(cardinality=MANDATORY_UNARY) protected org.onosproject.net.device.DeviceService deviceService
@Activate public void activate()
@Deactivate public void deactivate()
public void addVlan(FabricVlan vlan)
FabricServiceaddVlan in interface FabricServicevlan - vlan object to addpublic void removeVlan(org.onlab.packet.VlanId vlanId)
FabricServiceremoveVlan in interface FabricServicevlanId - ID of vlan to removepublic List<FabricVlan> getVlans()
FabricServicegetVlans in interface FabricServiceCopyright © 2015. All rights reserved.