Lines Matching refs:ibendport

1598     def __genkey(self, ibendport, ibdev_name):  argument
1602 port = int(ibendport)
1609 … raise ValueError(_("Could not create a key for ibendport %s/%s") % (ibdev_name, ibendport))
1612 def __add(self, ibendport, ibdev_name, serange, type): argument
1626 (k, ibendport, port) = self.__genkey(ibendport, ibdev_name)
1673 def add(self, ibendport, ibdev_name, serange, type): argument
1675 self.__add(ibendport, ibdev_name, serange, type)
1678 def __modify(self, ibendport, ibdev_name, serange, setype): argument
1690 (k, ibdev_name, port) = self.__genkey(ibendport, ibdev_name)
1694 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, ibendport))
1696 raise ValueError(_("ibendport %s/%s is not defined") % (ibdev_name, ibendport))
1700 raise ValueError(_("Could not query ibendport %s/%s") % (ibdev_name, ibendport))
1711 raise ValueError(_("Could not modify ibendport %s/%s") % (ibdev_name, ibendport))
1716 def modify(self, ibendport, ibdev_name, serange, setype): argument
1718 self.__modify(ibendport, ibdev_name, serange, setype)
1728 for ibendport in plist:
1729 (rc, ibdev_name) = semanage_ibendport_get_ibdev_name(self.sh, ibendport)
1730 port = semanage_ibendport_get_port(ibendport)
1742 def __delete(self, ibendport, ibdev_name): argument
1743 (k, ibdev_name, port) = self.__genkey(ibendport, ibdev_name)
1746 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, ibendport))
1748 raise ValueError(_("ibendport %s/%s is not defined") % (ibdev_name, ibendport))
1752 … raise ValueError(_("Could not check if ibendport %s/%s is defined") % (ibdev_name, ibendport))
1754 … ValueError(_("ibendport %s/%s is defined in policy, cannot be deleted") % (ibdev_name, ibendport))
1758 raise ValueError(_("Could not delete ibendport %s/%s") % (ibdev_name, ibendport))
1762 def delete(self, ibendport, ibdev_name): argument
1764 self.__delete(ibendport, ibdev_name)
1776 for ibendport in self.plist:
1777 con = semanage_ibendport_get_con(ibendport)
1782 (rc, ibdev_name) = semanage_ibendport_get_ibdev_name(self.sh, ibendport)
1783 port = semanage_ibendport_get_port(ibendport)
1796 for ibendport in self.plist:
1797 con = semanage_ibendport_get_con(ibendport)
1799 (rc, ibdev_name) = semanage_ibendport_get_ibdev_name(self.sh, ibendport)
1800 port = semanage_ibendport_get_port(ibendport)