mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-09 06:16:10 +02:00
ovs/bridge: Add utility method to create VXLAN port
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
8627c28070
commit
b77408d04c
@ -191,6 +191,10 @@ class OVSBridge(object):
|
||||
self.add_tunnel_port(name, 'gre', remote_ip,
|
||||
local_ip=local_ip, key=key)
|
||||
|
||||
def add_vxlan_port(self, name, remote_ip, local_ip=None, key=None):
|
||||
self.add_tunnel_port(name, 'vxlan', remote_ip,
|
||||
local_ip=local_ip, key=key)
|
||||
|
||||
def del_port(self, port_name):
|
||||
command = ovs_vsctl.VSCtlCommand('del-port', (self.br_name, port_name))
|
||||
self.run_command([command])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user