# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (3, 0, 0):
    new_instancemethod = lambda func, inst, cls: _capi.SWIG_PyInstanceMethod_New(func)
else:
    from new import instancemethod as new_instancemethod
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_capi')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_capi')
    _capi = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_capi', [dirname(__file__)])
        except ImportError:
            import _capi
            return _capi
        try:
            _mod = imp.load_module('_capi', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _capi = swig_import_helper()
    del swig_import_helper
else:
    import _capi
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr



def team_hwaddr_set(th, ifindex, addr):
    return _capi.team_hwaddr_set(th, ifindex, addr)
team_hwaddr_set = _capi.team_hwaddr_set

def team_hwaddr_get(th, ifindex, addr):
    return _capi.team_hwaddr_get(th, ifindex, addr)
team_hwaddr_get = _capi.team_hwaddr_get

def py_team_change_handler_register(th, handler, priv):
    return _capi.py_team_change_handler_register(th, handler, priv)
py_team_change_handler_register = _capi.py_team_change_handler_register

def py_team_change_handler_unregister(th, handler, priv):
    return _capi.py_team_change_handler_unregister(th, handler, priv)
py_team_change_handler_unregister = _capi.py_team_change_handler_unregister

def team_alloc():
    return _capi.team_alloc()
team_alloc = _capi.team_alloc

def team_create(th, team_name):
    return _capi.team_create(th, team_name)
team_create = _capi.team_create

def team_recreate(th, team_name):
    return _capi.team_recreate(th, team_name)
team_recreate = _capi.team_recreate

def team_destroy(th):
    return _capi.team_destroy(th)
team_destroy = _capi.team_destroy

def team_init(th, ifindex):
    return _capi.team_init(th, ifindex)
team_init = _capi.team_init

def team_free(th):
    return _capi.team_free(th)
team_free = _capi.team_free

def team_refresh(th):
    return _capi.team_refresh(th)
team_refresh = _capi.team_refresh

def team_set_log_fn(th, log_fn):
    return _capi.team_set_log_fn(th, log_fn)
team_set_log_fn = _capi.team_set_log_fn

def team_get_log_priority(th):
    return _capi.team_get_log_priority(th)
team_get_log_priority = _capi.team_get_log_priority

def team_set_log_priority(th, priority):
    return _capi.team_set_log_priority(th, priority)
team_set_log_priority = _capi.team_set_log_priority

def team_get_event_fd(th):
    return _capi.team_get_event_fd(th)
team_get_event_fd = _capi.team_get_event_fd

def team_handle_events(th):
    return _capi.team_handle_events(th)
team_handle_events = _capi.team_handle_events

def team_check_events(th):
    return _capi.team_check_events(th)
team_check_events = _capi.team_check_events

def team_get_mode_name(th):
    return _capi.team_get_mode_name(th)
team_get_mode_name = _capi.team_get_mode_name

def team_set_mode_name(th, mode_name):
    return _capi.team_set_mode_name(th, mode_name)
team_set_mode_name = _capi.team_set_mode_name

def team_get_notify_peers_count(th, count):
    return _capi.team_get_notify_peers_count(th, count)
team_get_notify_peers_count = _capi.team_get_notify_peers_count

def team_set_notify_peers_count(th, count):
    return _capi.team_set_notify_peers_count(th, count)
team_set_notify_peers_count = _capi.team_set_notify_peers_count

def team_get_notify_peers_interval(th, interval):
    return _capi.team_get_notify_peers_interval(th, interval)
team_get_notify_peers_interval = _capi.team_get_notify_peers_interval

def team_set_notify_peers_interval(th, interval):
    return _capi.team_set_notify_peers_interval(th, interval)
team_set_notify_peers_interval = _capi.team_set_notify_peers_interval

def team_get_mcast_rejoin_count(th, count):
    return _capi.team_get_mcast_rejoin_count(th, count)
team_get_mcast_rejoin_count = _capi.team_get_mcast_rejoin_count

def team_set_mcast_rejoin_count(th, count):
    return _capi.team_set_mcast_rejoin_count(th, count)
team_set_mcast_rejoin_count = _capi.team_set_mcast_rejoin_count

def team_get_mcast_rejoin_interval(th, interval):
    return _capi.team_get_mcast_rejoin_interval(th, interval)
team_get_mcast_rejoin_interval = _capi.team_get_mcast_rejoin_interval

def team_set_mcast_rejoin_interval(th, interval):
    return _capi.team_set_mcast_rejoin_interval(th, interval)
team_set_mcast_rejoin_interval = _capi.team_set_mcast_rejoin_interval

def team_get_active_port(th):
    return _capi.team_get_active_port(th)
team_get_active_port = _capi.team_get_active_port

def team_set_active_port(th, ifindex):
    return _capi.team_set_active_port(th, ifindex)
team_set_active_port = _capi.team_set_active_port

def team_get_bpf_hash_func(th, fp):
    return _capi.team_get_bpf_hash_func(th, fp)
team_get_bpf_hash_func = _capi.team_get_bpf_hash_func

def team_set_bpf_hash_func(th, fp):
    return _capi.team_set_bpf_hash_func(th, fp)
team_set_bpf_hash_func = _capi.team_set_bpf_hash_func

def team_set_port_enabled(th, port_ifindex, val):
    return _capi.team_set_port_enabled(th, port_ifindex, val)
team_set_port_enabled = _capi.team_set_port_enabled

def team_get_port_enabled(th, port_ifindex, enabled):
    return _capi.team_get_port_enabled(th, port_ifindex, enabled)
team_get_port_enabled = _capi.team_get_port_enabled

def team_set_port_user_linkup_enabled(th, port_ifindex, val):
    return _capi.team_set_port_user_linkup_enabled(th, port_ifindex, val)
team_set_port_user_linkup_enabled = _capi.team_set_port_user_linkup_enabled

def team_get_port_user_linkup(th, port_ifindex, linkup):
    return _capi.team_get_port_user_linkup(th, port_ifindex, linkup)
team_get_port_user_linkup = _capi.team_get_port_user_linkup

def team_set_port_user_linkup(th, port_ifindex, linkup):
    return _capi.team_set_port_user_linkup(th, port_ifindex, linkup)
team_set_port_user_linkup = _capi.team_set_port_user_linkup

def team_set_port_queue_id(th, port_ifindex, queue_id):
    return _capi.team_set_port_queue_id(th, port_ifindex, queue_id)
team_set_port_queue_id = _capi.team_set_port_queue_id

def team_get_port_priority(th, port_ifindex, priority):
    return _capi.team_get_port_priority(th, port_ifindex, priority)
team_get_port_priority = _capi.team_get_port_priority

def team_set_port_priority(th, port_ifindex, priority):
    return _capi.team_set_port_priority(th, port_ifindex, priority)
team_set_port_priority = _capi.team_set_port_priority

def team_get_ifinfo(th):
    return _capi.team_get_ifinfo(th)
team_get_ifinfo = _capi.team_get_ifinfo

def team_get_next_eventfd(th, eventfd):
    return _capi.team_get_next_eventfd(th, eventfd)
team_get_next_eventfd = _capi.team_get_next_eventfd

def team_get_eventfd_fd(th, eventfd):
    return _capi.team_get_eventfd_fd(th, eventfd)
team_get_eventfd_fd = _capi.team_get_eventfd_fd

def team_call_eventfd_handler(th, eventfd):
    return _capi.team_call_eventfd_handler(th, eventfd)
team_call_eventfd_handler = _capi.team_call_eventfd_handler

def team_get_next_port(th, port):
    return _capi.team_get_next_port(th, port)
team_get_next_port = _capi.team_get_next_port

def team_get_port_ifindex(port):
    return _capi.team_get_port_ifindex(port)
team_get_port_ifindex = _capi.team_get_port_ifindex

def team_get_port_speed(port):
    return _capi.team_get_port_speed(port)
team_get_port_speed = _capi.team_get_port_speed

def team_get_port_duplex(port):
    return _capi.team_get_port_duplex(port)
team_get_port_duplex = _capi.team_get_port_duplex

def team_is_port_link_up(port):
    return _capi.team_is_port_link_up(port)
team_is_port_link_up = _capi.team_is_port_link_up

def team_is_port_changed(port):
    return _capi.team_is_port_changed(port)
team_is_port_changed = _capi.team_is_port_changed

def team_is_port_removed(port):
    return _capi.team_is_port_removed(port)
team_is_port_removed = _capi.team_is_port_removed

def team_get_port_ifinfo(port):
    return _capi.team_get_port_ifinfo(port)
team_get_port_ifinfo = _capi.team_get_port_ifinfo

def team_is_port_present(th, port):
    return _capi.team_is_port_present(th, port)
team_is_port_present = _capi.team_is_port_present

def team_get_next_ifinfo(th, ifinfo):
    return _capi.team_get_next_ifinfo(th, ifinfo)
team_get_next_ifinfo = _capi.team_get_next_ifinfo

def team_is_ifinfo_removed(ifinfo):
    return _capi.team_is_ifinfo_removed(ifinfo)
team_is_ifinfo_removed = _capi.team_is_ifinfo_removed

def team_get_ifinfo_ifindex(ifinfo):
    return _capi.team_get_ifinfo_ifindex(ifinfo)
team_get_ifinfo_ifindex = _capi.team_get_ifinfo_ifindex

def team_get_ifinfo_admin_state(ifinfo):
    return _capi.team_get_ifinfo_admin_state(ifinfo)
team_get_ifinfo_admin_state = _capi.team_get_ifinfo_admin_state

def team_get_ifinfo_port(ifinfo):
    return _capi.team_get_ifinfo_port(ifinfo)
team_get_ifinfo_port = _capi.team_get_ifinfo_port

def team_get_ifinfo_hwaddr(ifinfo):
    return _capi.team_get_ifinfo_hwaddr(ifinfo)
team_get_ifinfo_hwaddr = _capi.team_get_ifinfo_hwaddr

def team_is_ifinfo_hwaddr_changed(ifinfo):
    return _capi.team_is_ifinfo_hwaddr_changed(ifinfo)
team_is_ifinfo_hwaddr_changed = _capi.team_is_ifinfo_hwaddr_changed

def team_get_ifinfo_hwaddr_len(ifinfo):
    return _capi.team_get_ifinfo_hwaddr_len(ifinfo)
team_get_ifinfo_hwaddr_len = _capi.team_get_ifinfo_hwaddr_len

def team_is_ifinfo_hwaddr_len_changed(ifinfo):
    return _capi.team_is_ifinfo_hwaddr_len_changed(ifinfo)
team_is_ifinfo_hwaddr_len_changed = _capi.team_is_ifinfo_hwaddr_len_changed

def team_get_ifinfo_orig_hwaddr(ifinfo):
    return _capi.team_get_ifinfo_orig_hwaddr(ifinfo)
team_get_ifinfo_orig_hwaddr = _capi.team_get_ifinfo_orig_hwaddr

def team_get_ifinfo_orig_hwaddr_len(ifinfo):
    return _capi.team_get_ifinfo_orig_hwaddr_len(ifinfo)
team_get_ifinfo_orig_hwaddr_len = _capi.team_get_ifinfo_orig_hwaddr_len

def team_get_ifinfo_ifname(ifinfo):
    return _capi.team_get_ifinfo_ifname(ifinfo)
team_get_ifinfo_ifname = _capi.team_get_ifinfo_ifname

def team_is_ifinfo_ifname_changed(ifinfo):
    return _capi.team_is_ifinfo_ifname_changed(ifinfo)
team_is_ifinfo_ifname_changed = _capi.team_is_ifinfo_ifname_changed

def team_get_ifinfo_master_ifindex(ifinfo):
    return _capi.team_get_ifinfo_master_ifindex(ifinfo)
team_get_ifinfo_master_ifindex = _capi.team_get_ifinfo_master_ifindex

def team_is_ifinfo_master_ifindex_changed(ifinfo):
    return _capi.team_is_ifinfo_master_ifindex_changed(ifinfo)
team_is_ifinfo_master_ifindex_changed = _capi.team_is_ifinfo_master_ifindex_changed

def team_is_ifinfo_admin_state_changed(ifinfo):
    return _capi.team_is_ifinfo_admin_state_changed(ifinfo)
team_is_ifinfo_admin_state_changed = _capi.team_is_ifinfo_admin_state_changed

def team_get_ifinfo_phys_port_id(ifinfo):
    return _capi.team_get_ifinfo_phys_port_id(ifinfo)
team_get_ifinfo_phys_port_id = _capi.team_get_ifinfo_phys_port_id

def team_is_ifinfo_phys_port_id_changed(ifinfo):
    return _capi.team_is_ifinfo_phys_port_id_changed(ifinfo)
team_is_ifinfo_phys_port_id_changed = _capi.team_is_ifinfo_phys_port_id_changed

def team_get_ifinfo_phys_port_id_len(ifinfo):
    return _capi.team_get_ifinfo_phys_port_id_len(ifinfo)
team_get_ifinfo_phys_port_id_len = _capi.team_get_ifinfo_phys_port_id_len

def team_is_ifinfo_phys_port_id_len_changed(ifinfo):
    return _capi.team_is_ifinfo_phys_port_id_len_changed(ifinfo)
team_is_ifinfo_phys_port_id_len_changed = _capi.team_is_ifinfo_phys_port_id_len_changed

def team_is_ifinfo_changed(ifinfo):
    return _capi.team_is_ifinfo_changed(ifinfo)
team_is_ifinfo_changed = _capi.team_is_ifinfo_changed
TEAM_OPTION_TYPE_U32 = _capi.TEAM_OPTION_TYPE_U32
TEAM_OPTION_TYPE_STRING = _capi.TEAM_OPTION_TYPE_STRING
TEAM_OPTION_TYPE_BINARY = _capi.TEAM_OPTION_TYPE_BINARY
TEAM_OPTION_TYPE_BOOL = _capi.TEAM_OPTION_TYPE_BOOL
TEAM_OPTION_TYPE_S32 = _capi.TEAM_OPTION_TYPE_S32

def team_get_option(th, fmt):
    return _capi.team_get_option(th, fmt)
team_get_option = _capi.team_get_option

def team_get_next_option(th, option):
    return _capi.team_get_next_option(th, option)
team_get_next_option = _capi.team_get_next_option

def team_is_option_initialized(option):
    return _capi.team_is_option_initialized(option)
team_is_option_initialized = _capi.team_is_option_initialized

def team_get_option_name(option):
    return _capi.team_get_option_name(option)
team_get_option_name = _capi.team_get_option_name

def team_get_option_port_ifindex(option):
    return _capi.team_get_option_port_ifindex(option)
team_get_option_port_ifindex = _capi.team_get_option_port_ifindex

def team_is_option_per_port(option):
    return _capi.team_is_option_per_port(option)
team_is_option_per_port = _capi.team_is_option_per_port

def team_get_option_array_index(option):
    return _capi.team_get_option_array_index(option)
team_get_option_array_index = _capi.team_get_option_array_index

def team_is_option_array(option):
    return _capi.team_is_option_array(option)
team_is_option_array = _capi.team_is_option_array

def team_get_option_type(option):
    return _capi.team_get_option_type(option)
team_get_option_type = _capi.team_get_option_type

def team_is_option_changed(option):
    return _capi.team_is_option_changed(option)
team_is_option_changed = _capi.team_is_option_changed

def team_is_option_changed_locally(option):
    return _capi.team_is_option_changed_locally(option)
team_is_option_changed_locally = _capi.team_is_option_changed_locally

def team_get_option_value_len(option):
    return _capi.team_get_option_value_len(option)
team_get_option_value_len = _capi.team_get_option_value_len

def team_get_option_value_u32(option):
    return _capi.team_get_option_value_u32(option)
team_get_option_value_u32 = _capi.team_get_option_value_u32

def team_get_option_value_string(option):
    return _capi.team_get_option_value_string(option)
team_get_option_value_string = _capi.team_get_option_value_string

def team_get_option_value_binary(option):
    return _capi.team_get_option_value_binary(option)
team_get_option_value_binary = _capi.team_get_option_value_binary

def team_get_option_value_bool(option):
    return _capi.team_get_option_value_bool(option)
team_get_option_value_bool = _capi.team_get_option_value_bool

def team_get_option_value_s32(option):
    return _capi.team_get_option_value_s32(option)
team_get_option_value_s32 = _capi.team_get_option_value_s32

def team_set_option_value_u32(th, option, val):
    return _capi.team_set_option_value_u32(th, option, val)
team_set_option_value_u32 = _capi.team_set_option_value_u32

def team_set_option_value_string(th, option, str):
    return _capi.team_set_option_value_string(th, option, str)
team_set_option_value_string = _capi.team_set_option_value_string

def team_set_option_value_binary(th, option, data, data_len):
    return _capi.team_set_option_value_binary(th, option, data, data_len)
team_set_option_value_binary = _capi.team_set_option_value_binary

def team_set_option_value_bool(th, option, val):
    return _capi.team_set_option_value_bool(th, option, val)
team_set_option_value_bool = _capi.team_set_option_value_bool

def team_set_option_value_s32(th, option, val):
    return _capi.team_set_option_value_s32(th, option, val)
team_set_option_value_s32 = _capi.team_set_option_value_s32
TEAM_PORT_CHANGE = _capi.TEAM_PORT_CHANGE
TEAM_OPTION_CHANGE = _capi.TEAM_OPTION_CHANGE
TEAM_IFINFO_CHANGE = _capi.TEAM_IFINFO_CHANGE
TEAM_ANY_CHANGE = _capi.TEAM_ANY_CHANGE
class team_change_handler(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    func = _swig_property(_capi.team_change_handler_func_get, _capi.team_change_handler_func_set)
    type_mask = _swig_property(_capi.team_change_handler_type_mask_get, _capi.team_change_handler_type_mask_set)

    def __init__(self, func, type_mask):
        _capi.team_change_handler_swiginit(self, _capi.new_team_change_handler(func, type_mask))
    __swig_destroy__ = _capi.delete_team_change_handler
team_change_handler_swigregister = _capi.team_change_handler_swigregister
team_change_handler_swigregister(team_change_handler)


def team_change_handler_register(th, handler, priv):
    return _capi.team_change_handler_register(th, handler, priv)
team_change_handler_register = _capi.team_change_handler_register

def team_change_handler_register_head(th, handler, priv):
    return _capi.team_change_handler_register_head(th, handler, priv)
team_change_handler_register_head = _capi.team_change_handler_register_head

def team_change_handler_unregister(th, handler, priv):
    return _capi.team_change_handler_unregister(th, handler, priv)
team_change_handler_unregister = _capi.team_change_handler_unregister

def team_option_value_str(option, buf, bufsiz):
    return _capi.team_option_value_str(option, buf, bufsiz)
team_option_value_str = _capi.team_option_value_str

def team_set_option_value_from_string(th, option, str):
    return _capi.team_set_option_value_from_string(th, option, str)
team_set_option_value_from_string = _capi.team_set_option_value_from_string

def team_option_str(th, option, buf, bufsiz):
    return _capi.team_option_str(th, option, buf, bufsiz)
team_option_str = _capi.team_option_str

def team_port_str(port, buf, bufsiz):
    return _capi.team_port_str(port, buf, bufsiz)
team_port_str = _capi.team_port_str

def team_ifinfo_str(ifinfo, buf, bufsiz):
    return _capi.team_ifinfo_str(ifinfo, buf, bufsiz)
team_ifinfo_str = _capi.team_ifinfo_str

def team_ifname2ifindex(th, ifname):
    return _capi.team_ifname2ifindex(th, ifname)
team_ifname2ifindex = _capi.team_ifname2ifindex

def team_ifindex2ifname(th, ifindex, ifname):
    return _capi.team_ifindex2ifname(th, ifindex, ifname)
team_ifindex2ifname = _capi.team_ifindex2ifname

def team_port_add(th, port_ifindex):
    return _capi.team_port_add(th, port_ifindex)
team_port_add = _capi.team_port_add

def team_port_remove(th, port_ifindex):
    return _capi.team_port_remove(th, port_ifindex)
team_port_remove = _capi.team_port_remove

def team_is_our_port(th, port_ifindex):
    return _capi.team_is_our_port(th, port_ifindex)
team_is_our_port = _capi.team_is_our_port

def team_carrier_set(th, carrier_up):
    return _capi.team_carrier_set(th, carrier_up)
team_carrier_set = _capi.team_carrier_set

def team_carrier_get(th, carrier_up):
    return _capi.team_carrier_get(th, carrier_up)
team_carrier_get = _capi.team_carrier_get

def team_hwaddr_len_get(th, ifindex):
    return _capi.team_hwaddr_len_get(th, ifindex)
team_hwaddr_len_get = _capi.team_hwaddr_len_get


