#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
#
pval = None
if k == 'type':
continue
if v is not None:
pval = v
break
return pval
if dlerr != None:
else:
print "Exception: %s" % ex
if numargs != 3:
return False
try:
return False
return True
if numargs != 2:
return False
# Enumerate all the datalinks and reset any ofports that are set
for datalink_name in datalink_name_list:
try:
# ignore if not a supported property
continue
continue
continue
try:
})
return rval
if numargs != 2:
return False
# Enumerate all the datalinks and look for OF links
for datalink_name in datalink_list:
try:
# ignore if not a supported property
continue
continue
continue
# Enumerate all the flows for the datalink and remove them
try:
# ignore if the flow is no longer found or is a system
# generated flow (e.g., vxlan system flows)
continue
return rval
if numargs != 3:
return False
try:
})
pass
return False
return True
def main():
if numargs < 2:
else:
print "\nInvalid ovs shutdown function"
if __name__ == "__main__":
main()