From b77408d04c7d65659afedb1b0556e83d905b5939 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Mon, 26 Sep 2016 09:28:39 +0900 Subject: ovs/bridge: Add utility method to create VXLAN port Signed-off-by: IWASE Yusuke Signed-off-by: FUJITA Tomonori --- ryu/lib/ovs/bridge.py | 4 ++++ 1 file changed, 4 insertions(+) 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]) -- cgit v1.2.3