diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-09-26 09:28:39 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-10-01 21:13:27 +0900 |
commit | b77408d04c7d65659afedb1b0556e83d905b5939 (patch) | |
tree | a33e2f9c5434862f8ab83002d12faa0f202ae035 | |
parent | 8627c280707a3dfab5c79f5362ceacbb3cbca781 (diff) |
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>
-rw-r--r-- | ryu/lib/ovs/bridge.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ryu/lib/ovs/bridge.py b/ryu/lib/ovs/bridge.py index 05535ef2..1e1e34cd 100644 --- a/ryu/lib/ovs/bridge.py +++ b/ryu/lib/ovs/bridge.py @@ -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]) |