Exemplo n.º 1
0
    def name(self, value):
        capi.rtnl_link_set_name(self._rtnl_link, value)

        # name is the secondary identifier, if _orig does not have
        # the name specified yet, assume it was meant to be specified
        # here. ifindex will always take priority, therefore if ifindex
        # is specified as well, this will be ignored automatically.
        if capi.rtnl_link_get_name(self._orig) is None:
            capi.rtnl_link_set_name(self._orig, value)
Exemplo n.º 2
0
        def name(self, value):
        	capi.rtnl_link_set_name(self._rtnl_link, value)

		# name is the secondary identifier, if _orig does not have
		# the name specified yet, assume it was meant to be specified
		# here. ifindex will always take priority, therefore if ifindex
		# is specified as well, this will be ignored automatically.
		if capi.rtnl_link_get_name(self._orig) is None:
			capi.rtnl_link_set_name(self._orig, value)
Exemplo n.º 3
0
 def name(self):
     """Name of link"""
     return capi.rtnl_link_get_name(self._rtnl_link)
Exemplo n.º 4
0
 def name(self):
 	"""Name of link"""
 	return capi.rtnl_link_get_name(self._rtnl_link)