# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.1
#
# 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 < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _capi
else:
    import _capi

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

_swig_new_instance_method = _capi.SWIG_PyInstanceMethod_New
_swig_new_static_method = _capi.SWIG_PyStaticMethod_New

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_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


team_hwaddr_set = _capi.team_hwaddr_set
team_hwaddr_get = _capi.team_hwaddr_get
py_team_change_handler_register = _capi.py_team_change_handler_register
py_team_change_handler_unregister = _capi.py_team_change_handler_unregister
team_alloc = _capi.team_alloc
team_create = _capi.team_create
team_recreate = _capi.team_recreate
team_destroy = _capi.team_destroy
team_init = _capi.team_init
team_free = _capi.team_free
team_refresh = _capi.team_refresh
team_set_log_fn = _capi.team_set_log_fn
team_get_log_priority = _capi.team_get_log_priority
team_set_log_priority = _capi.team_set_log_priority
team_get_event_fd = _capi.team_get_event_fd
team_handle_events = _capi.team_handle_events
team_check_events = _capi.team_check_events
team_get_mode_name = _capi.team_get_mode_name
team_set_mode_name = _capi.team_set_mode_name
team_get_notify_peers_count = _capi.team_get_notify_peers_count
team_set_notify_peers_count = _capi.team_set_notify_peers_count
team_get_notify_peers_interval = _capi.team_get_notify_peers_interval
team_set_notify_peers_interval = _capi.team_set_notify_peers_interval
team_get_mcast_rejoin_count = _capi.team_get_mcast_rejoin_count
team_set_mcast_rejoin_count = _capi.team_set_mcast_rejoin_count
team_get_mcast_rejoin_interval = _capi.team_get_mcast_rejoin_interval
team_set_mcast_rejoin_interval = _capi.team_set_mcast_rejoin_interval
team_get_active_port = _capi.team_get_active_port
team_set_active_port = _capi.team_set_active_port
team_get_bpf_hash_func = _capi.team_get_bpf_hash_func
team_set_bpf_hash_func = _capi.team_set_bpf_hash_func
team_set_port_enabled = _capi.team_set_port_enabled
team_get_port_enabled = _capi.team_get_port_enabled
team_set_port_user_linkup_enabled = _capi.team_set_port_user_linkup_enabled
team_get_port_user_linkup = _capi.team_get_port_user_linkup
team_set_port_user_linkup = _capi.team_set_port_user_linkup
team_set_port_queue_id = _capi.team_set_port_queue_id
team_get_port_priority = _capi.team_get_port_priority
team_set_port_priority = _capi.team_set_port_priority
team_get_ifinfo = _capi.team_get_ifinfo
team_get_next_eventfd = _capi.team_get_next_eventfd
team_get_eventfd_fd = _capi.team_get_eventfd_fd
team_call_eventfd_handler = _capi.team_call_eventfd_handler
team_get_next_port = _capi.team_get_next_port
team_get_port_ifindex = _capi.team_get_port_ifindex
team_get_port_speed = _capi.team_get_port_speed
team_get_port_duplex = _capi.team_get_port_duplex
team_is_port_link_up = _capi.team_is_port_link_up
team_is_port_changed = _capi.team_is_port_changed
team_is_port_removed = _capi.team_is_port_removed
team_get_port_ifinfo = _capi.team_get_port_ifinfo
team_is_port_present = _capi.team_is_port_present
team_get_next_ifinfo = _capi.team_get_next_ifinfo
team_is_ifinfo_removed = _capi.team_is_ifinfo_removed
team_get_ifinfo_ifindex = _capi.team_get_ifinfo_ifindex
team_get_ifinfo_admin_state = _capi.team_get_ifinfo_admin_state
team_get_ifinfo_port = _capi.team_get_ifinfo_port
team_get_ifinfo_hwaddr = _capi.team_get_ifinfo_hwaddr
team_is_ifinfo_hwaddr_changed = _capi.team_is_ifinfo_hwaddr_changed
team_get_ifinfo_hwaddr_len = _capi.team_get_ifinfo_hwaddr_len
team_is_ifinfo_hwaddr_len_changed = _capi.team_is_ifinfo_hwaddr_len_changed
team_get_ifinfo_orig_hwaddr = _capi.team_get_ifinfo_orig_hwaddr
team_get_ifinfo_orig_hwaddr_len = _capi.team_get_ifinfo_orig_hwaddr_len
team_get_ifinfo_ifname = _capi.team_get_ifinfo_ifname
team_is_ifinfo_ifname_changed = _capi.team_is_ifinfo_ifname_changed
team_get_ifinfo_master_ifindex = _capi.team_get_ifinfo_master_ifindex
team_is_ifinfo_master_ifindex_changed = _capi.team_is_ifinfo_master_ifindex_changed
team_is_ifinfo_admin_state_changed = _capi.team_is_ifinfo_admin_state_changed
team_get_ifinfo_phys_port_id = _capi.team_get_ifinfo_phys_port_id
team_is_ifinfo_phys_port_id_changed = _capi.team_is_ifinfo_phys_port_id_changed
team_get_ifinfo_phys_port_id_len = _capi.team_get_ifinfo_phys_port_id_len
team_is_ifinfo_phys_port_id_len_changed = _capi.team_is_ifinfo_phys_port_id_len_changed
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
team_get_option = _capi.team_get_option
team_get_next_option = _capi.team_get_next_option
team_is_option_initialized = _capi.team_is_option_initialized
team_get_option_name = _capi.team_get_option_name
team_get_option_port_ifindex = _capi.team_get_option_port_ifindex
team_is_option_per_port = _capi.team_is_option_per_port
team_get_option_array_index = _capi.team_get_option_array_index
team_is_option_array = _capi.team_is_option_array
team_get_option_type = _capi.team_get_option_type
team_is_option_changed = _capi.team_is_option_changed
team_is_option_changed_locally = _capi.team_is_option_changed_locally
team_get_option_value_len = _capi.team_get_option_value_len
team_get_option_value_u32 = _capi.team_get_option_value_u32
team_get_option_value_string = _capi.team_get_option_value_string
team_get_option_value_binary = _capi.team_get_option_value_binary
team_get_option_value_bool = _capi.team_get_option_value_bool
team_get_option_value_s32 = _capi.team_get_option_value_s32
team_set_option_value_u32 = _capi.team_set_option_value_u32
team_set_option_value_string = _capi.team_set_option_value_string
team_set_option_value_binary = _capi.team_set_option_value_binary
team_set_option_value_bool = _capi.team_set_option_value_bool
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_IFINFO_REFRESH = _capi.TEAM_IFINFO_REFRESH
TEAM_ANY_CHANGE = _capi.TEAM_ANY_CHANGE
class team_change_handler(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    func = property(_capi.team_change_handler_func_get, _capi.team_change_handler_func_set)
    type_mask = 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

# Register team_change_handler in _capi:
_capi.team_change_handler_swigregister(team_change_handler)

team_change_handler_register = _capi.team_change_handler_register
team_change_handler_register_head = _capi.team_change_handler_register_head
team_change_handler_unregister = _capi.team_change_handler_unregister
team_option_value_str = _capi.team_option_value_str
team_set_option_value_from_string = _capi.team_set_option_value_from_string
team_option_str = _capi.team_option_str
team_port_str = _capi.team_port_str
team_ifinfo_str = _capi.team_ifinfo_str
team_ifname2ifindex = _capi.team_ifname2ifindex
team_ifindex2ifname = _capi.team_ifindex2ifname
team_port_add = _capi.team_port_add
team_port_remove = _capi.team_port_remove
team_is_our_port = _capi.team_is_our_port
team_carrier_set = _capi.team_carrier_set
team_carrier_get = _capi.team_carrier_get
team_hwaddr_len_get = _capi.team_hwaddr_len_get


