Beispiel #1
0
    def __init__(self, obj=None):
        netlink.Object.__init__(self, "route/cls", "cls", obj)
        self._module_path = 'netlink.route.cls.'
        self._rtnl_cls = self._obj2type(self._nl_object)
        self._rtnl_tc = capi.obj2tc(self._nl_object)

        netlink.add_attr('cls.handle', fmt=util.handle)
        netlink.add_attr('cls.parent', fmt=util.handle)
        netlink.add_attr('cls.kind', fmt=util.bold)
Beispiel #2
0
	def __init__(self, obj=None):
		netlink.Object.__init__(self, "route/cls", "cls", obj)
                self._module_path = 'netlink.route.cls.'
		self._rtnl_cls = self._obj2type(self._nl_object)
		self._rtnl_tc = capi.obj2tc(self._nl_object)

		netlink.add_attr('cls.handle', fmt=util.handle)
		netlink.add_attr('cls.parent', fmt=util.handle)
		netlink.add_attr('cls.kind', fmt=util.bold)
Beispiel #3
0
    def __init__(self, obj=None):
        netlink.Object.__init__(self, "route/qdisc", "qdisc", obj)
        self._module_path = 'netlink.route.qdisc.'
        self._rtnl_qdisc = self._obj2type(self._nl_object)
        self._rtnl_tc = capi.obj2tc(self._nl_object)

        netlink.add_attr('qdisc.handle', fmt=util.handle)
        netlink.add_attr('qdisc.parent', fmt=util.handle)
        netlink.add_attr('qdisc.kind', fmt=util.bold)

        if self.kind:
            self._tc_module_lookup()
Beispiel #4
0
	def __init__(self, obj=None):
		netlink.Object.__init__(self, "route/qdisc", "qdisc", obj)
                self._module_path = 'netlink.route.qdisc.'
		self._rtnl_qdisc = self._obj2type(self._nl_object)
		self._rtnl_tc = capi.obj2tc(self._nl_object)

		netlink.add_attr('qdisc.handle', fmt=util.handle)
		netlink.add_attr('qdisc.parent', fmt=util.handle)
		netlink.add_attr('qdisc.kind', fmt=util.bold)

                if self.kind:
                        self._tc_module_lookup()