small refactoring on how node maps are used, added logic to switch to using a map based on bsd nodes using previous logic
This commit is contained in:
parent
eb5dd3780c
commit
463618ddf8
16 changed files with 46 additions and 36 deletions
|
@ -737,3 +737,14 @@ class OvsGreTapBridge(OvsNet):
|
|||
prior to instantiating the GreTap device (before addrconfig).
|
||||
"""
|
||||
self.grekey = key
|
||||
|
||||
|
||||
OVS_NODES = {
|
||||
NodeTypes.SWITCH: OvsSwitchNode,
|
||||
NodeTypes.HUB: OvsHubNode,
|
||||
NodeTypes.WIRELESS_LAN: OvsWlanNode,
|
||||
NodeTypes.TUNNEL: OvsTunnelNode,
|
||||
NodeTypes.TAP_BRIDGE: OvsGreTapBridge,
|
||||
NodeTypes.PEER_TO_PEER: OvsPtpNet,
|
||||
NodeTypes.CONTROL_NET: OvsCtrlNet
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue