-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global hashing functions for VxLAN IDs and VLAN IDs, virtual networks…
… can be connected to physical VLAN (#58) ## Global hashing functions for VxLAN IDs and VLAN IDs All nodes are able to select the same VxLAN ID or VLAN ID for a virtual network using a global hash function, this function uses the uuid in order to generate the VNI or VLAN ID. ## Virtual Networks can be connected to physical VLANs The LinuxBridge plugin is able to attach the containers to physical VLANs, new parameters can be set in the LinuxBridge configuration in order to allow the vlan id range and the interface to be used for VLANs.
- Loading branch information
Showing
4 changed files
with
148 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
# Copyright (c) 2014,2019 ADLINK Technology Inc. | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: Gabriele Baldoni, ADLINK Technology Inc. - OCamk plugins set | ||
|
||
|
||
|
||
sudo ip netns add fosns-{{ net_id }} | ||
sudo ip link add br-{{ net_id }} type bridge | ||
sudo ip link set dev {{ vlan_intf }} master br-{{ net_id }} | ||
# sudo ip link set br-{{ net_id }} netns fosns-{{ net_id }} | ||
sudo ip link set up dev br-{{ net_id }} | ||
sudo ip link set up dev {{ vlan_intf }} | ||
sudo ethtool --offload br-{{ net_id }} rx off tx off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
# Copyright (c) 2014,2019 ADLINK Technology Inc. | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: Gabriele Baldoni, ADLINK Technology Inc. - OCamk plugins set | ||
|
||
|
||
sudo ip link set br-{{ net_id }} down | ||
sudo ip link del br-{{ net_id }} | ||
sudo ip netns del fosns-{{ net_id }} | ||
|
||
|