So, remove from python binding. Should not break compatibility.
extern void rtnl_link_set_txqlen(struct rtnl_link *, unsigned int);
extern unsigned int rtnl_link_get_txqlen(struct rtnl_link *);
-extern void rtnl_link_set_weight(struct rtnl_link *, unsigned int);
-extern unsigned int rtnl_link_get_weight(struct rtnl_link *);
-
extern void rtnl_link_set_ifindex(struct rtnl_link *, int);
extern int rtnl_link_get_ifindex(struct rtnl_link *);
def txqlen(self, value):
capi.rtnl_link_set_txqlen(self._rtnl_link, int(value))
- @property
- @netlink.nlattr(type=str, fmt=util.string)
- def weight(self):
- """Weight"""
- v = capi.rtnl_link_get_weight(self._rtnl_link)
- if v == 4294967295:
- return 'max'
- else:
- return str(v)
-
- @weight.setter
- def weight(self, value):
- if value == 'max':
- v = 4294967295
- else:
- v = int(value)
- capi.rtnl_link_set_weight(self._rtnl_link, v)
-
@property
@netlink.nlattr(type=str, immutable=True, fmt=util.string)
def arptype(self):