Search in sources :

Example 1 with BridgeName

use of org.onosproject.net.behaviour.BridgeName in project onos by opennetworkinglab.

the class KubevirtNetworkHandler method removeBridge.

private void removeBridge(KubevirtNode node, KubevirtNetwork network) {
    Device device = deviceService.getDevice(node.ovsdb());
    BridgeName bridgeName = BridgeName.bridgeName(network.tenantBridgeName());
    BridgeConfig bridgeConfig = device.as(BridgeConfig.class);
    bridgeConfig.deleteBridge(bridgeName);
    deviceService.removeDevice(network.tenantDeviceId(node.hostname()));
}
Also used : Device(org.onosproject.net.Device) BridgeConfig(org.onosproject.net.behaviour.BridgeConfig) BridgeName(org.onosproject.net.behaviour.BridgeName)

Example 2 with BridgeName

use of org.onosproject.net.behaviour.BridgeName in project onos by opennetworkinglab.

the class DefaultKubevirtNodeHandler method removePhysicalBridge.

private void removePhysicalBridge(KubevirtNode node, String network) {
    Device device = deviceService.getDevice(node.ovsdb());
    BridgeName bridgeName = BridgeName.bridgeName(BRIDGE_PREFIX + network);
    BridgeConfig bridgeConfig = device.as(BridgeConfig.class);
    bridgeConfig.deleteBridge(bridgeName);
}
Also used : Device(org.onosproject.net.Device) BridgeConfig(org.onosproject.net.behaviour.BridgeConfig) BridgeName(org.onosproject.net.behaviour.BridgeName)

Example 3 with BridgeName

use of org.onosproject.net.behaviour.BridgeName in project onos by opennetworkinglab.

the class DefaultOpenstackNodeHandler method removePhysicalBridge.

private void removePhysicalBridge(OpenstackNode osNode, String network) {
    Device device = deviceService.getDevice(osNode.ovsdb());
    BridgeName bridgeName = BridgeName.bridgeName(BRIDGE_PREFIX + network);
    BridgeConfig bridgeConfig = device.as(BridgeConfig.class);
    bridgeConfig.deleteBridge(bridgeName);
}
Also used : Device(org.onosproject.net.Device) BridgeConfig(org.onosproject.net.behaviour.BridgeConfig) BridgeName(org.onosproject.net.behaviour.BridgeName)

Aggregations

Device (org.onosproject.net.Device)3 BridgeConfig (org.onosproject.net.behaviour.BridgeConfig)3 BridgeName (org.onosproject.net.behaviour.BridgeName)3