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()));
}
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);
}
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);
}
Aggregations