summaryrefslogtreecommitdiff
path: root/specs/qla2xxx.spec
blob: afb15ff4506b7e8d25a289514f095cce885dcb82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# The qla2xxx fabric module specfile.
#
# This file is part of RTSLib Community Edition.
# Copyright (c) 2011 by RisingTide Systems LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, version 3 (AGPLv3).
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# The qla2xxx fabric module feature set
features = ("acls",)

# Non-standard module naming scheme
kernel_module = "tcm_qla2xxx"

def wwns():
    for wwn_file in glob("/sys/class/fc_host/host*/port_name"):
        yield colonize(fread(wwn_file)[2:])