User Manual
Features Overview and ConfigurationRev 2.3-1.0.1
Mellanox Technologies
96
Port Groups Policy Examples
Defining a Topologies Policy File
In order to define a port group policy file, set the parameter 'topo_policy_file' in the opensm con-
figuration file.
topo_policy_file /etc/opensm/conf/topo_policy_file.cfg
Configuring a Topology Policy
The topologies policy file details a list of topologies. The policy file should be composed of one
or more paragraphs which define a topology. Each paragraph should begin with the line 'topol-
ogy' and end with the line 'end-topology'.
For example:
topology
…topology qualifiers…
end-topology
Topology Qualifiers
All topology qualifiers are mandatory. Absence of any of the below qualifiers will cause the pol-
icy parsing to fail.
port-group
name: grp3
use: Subtract of groups grp1 and grp2
subtract-rule: grp1, grp2
end-port-group
port-group
name: grp1
port-guid: 0x281, 0x282, 0x283
end-port-group
port-group
name: grp2
port-guid-range: 0x282-0x286
end-port-group
port-group
name: grp4
port-name: hostname=kika port=1 hca_idx=1
end-port-group
port-group
name: grp3
union-rule: grp3, grp4
end-port-group
Unlike topology and end-topology which do not require a colon, all qualifiers must end
with a colon (':'). Also - a colon is a predefined mark that must not be used inside qualifier
values. An inclusion of a column in the qualifier values will result in the policy's failure.