mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +00:00
python: Resolve pep8 blank line errors.
Resolve pep8 errors E302 and E303: E302 expected 2 blank lines, found 1 E303 too many blank lines (3) Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
@@ -24,6 +24,7 @@ import sys
|
||||
CONTROL_PORT = 15531
|
||||
DATA_PORT = 15532
|
||||
|
||||
|
||||
def ip_address(string):
|
||||
"""Verifies if string is a valid IP address"""
|
||||
try:
|
||||
@@ -246,6 +247,7 @@ def ovs_initialize_args():
|
||||
'OuterIP.')
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def l3_initialize_args():
|
||||
"""
|
||||
Initialize argument parsing for ovs-l3ping utility.
|
||||
|
||||
@@ -139,7 +139,6 @@ def do_l3_tests(node1, node2, bandwidth, duration, ps, type):
|
||||
server.del_bridge(DEFAULT_TEST_BRIDGE)
|
||||
|
||||
|
||||
|
||||
def do_vlan_tests(node1, node2, bandwidth, duration, ps, tag):
|
||||
"""
|
||||
Do VLAN tests between node1 and node2. Each node is given
|
||||
|
||||
@@ -33,6 +33,7 @@ def ovs_vsctl_del_bridge(bridge):
|
||||
ret, _out, _err = util.start_process(["ovs-vsctl", "del-br", bridge])
|
||||
return ret
|
||||
|
||||
|
||||
def ovs_vsctl_del_pbridge(bridge, iface):
|
||||
"""
|
||||
This function deletes the OVS bridge and assigns the bridge IP address
|
||||
|
||||
Reference in New Issue
Block a user