Lines Matching refs:capi
12 from .. import capi as capi unknown
17 self._has_ext_info = capi.rtnl_link_bridge_has_ext_info(self._link)
43 return capi.rtnl_link_bridge_get_state(self._link)
47 capi.rtnl_link_bridge_set_state(self._link, int(state))
55 return capi.rtnl_link_bridge_get_prio(self._link)
62 capi.rtnl_link_bridge_set_prio(self._link, int(prio))
70 return capi.rtnl_link_bridge_get_cost(self._link)
77 capi.rtnl_link_bridge_set_cost(self._link, int(cost))
91 flags = capi.rtnl_link_bridge_get_flags(self._link)
92 return capi.rtnl_link_bridge_flags2str(flags, 256)[0].split(',')
96 i = capi.rtnl_link_bridge_str2flags(flag[1:])
97 capi.rtnl_link_bridge_unset_flags(self._link, i)
99 i = capi.rtnl_link_bridge_str2flags(flag[1:])
100 capi.rtnl_link_bridge_set_flags(self._link, i)
102 i = capi.rtnl_link_bridge_str2flags(flag)
103 capi.rtnl_link_bridge_set_flags(self._link, i)