General InformationThis opening ID is invoked when you use the following commands:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
Note:
The opening ID can be define to exclude some type of ports If the opening ID is not
attached to theRule to Filter Logical Ports to Be Exposed resource,
all ports are exposed by default. If the opening ID is defined but fails, no ports are
exposed.
Exposing Portsthe following rule exposes only the ports that contains Port 1 as a substring in the port name:
let ListOfPorts (List)
set ListOfPorts = Parameters.GetAttributeObject("ListOfPorts")
let op_BoolListToExpose(List)
let LogicalPort(RFLVPMLogicalPort)
let strPortName(String)
let i = 1
let isize = 0
let index(Integer)
set index = -1
set isize = ListOfPorts->Size()
for i while i<=isize
{
set LogicalPort = ListOfPorts->GetItem(i)
set strPortName = LogicalPort.Name
set index = strPortName->Search("Port 1")
if(-1 == index)
{
op_BoolListToExpose.Append(false)
}
else
{
op_BoolListToExpose.Append(true)
}
i = i+1
}
Parameters.SetAttributeObject("BoolListToExpose", op_BoolListToExpose)
| |||||||||||||||||||||||||||||||||||||||