bug 7722: open vswitch - set noflood flag to gre port

This commit is contained in:
Frank 2011-01-13 19:51:47 -08:00
parent c312147c52
commit 9e1c4ba779
1 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,9 @@ def ovs_create_gre (session, args):
res = do_cmd(wait)
if name in res:
port = get_field_of_interface(name, "ofport");
noFlood = [vsctlPath, "ovs-ofctl mod-port %s %s noflood" % (bridge, \
name)]
do_cmd(noFlood)
result = "SUCCESS:%s" % port
else:
result = errors["COMMAND_FAILED"]