Lines Matching full:port
57 if [ -e port-create.txt ]; then
60 PORTNUM=`awk '/port:/ {print $2}' port-create.txt`
61 ctladm port -r -d $driver -p $PORTNUM
64 TARGET=`awk '/target:/ {print $2}' port-create.txt`
65 ctladm port -r -d $driver -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target=$TARGET
74 atf_set "descr" "ctladm can create a new ioctl port"
81 atf_check -o save:port-create.txt ctladm port -c -d "ioctl"
82 atf_check egrep -q "Port created successfully" port-create.txt
83 atf_check egrep -q "frontend: *ioctl" port-create.txt
84 atf_check egrep -q "port: *[0-9]+" port-create.txt
85 portnum=`awk '/port:/ {print $2}' port-create.txt`
104 atf_check -o save:port-create.txt ctladm port -c -d "ioctl"
105 atf_check egrep -q "Port created successfully" port-create.txt
106 atf_check -s exit:1 -e match:"Missing required argument: port_id" ctladm port -r -d "ioctl"
116 atf_set "descr" "ctladm can create a new iscsi port"
125 atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
126 echo "target: $TARGET" >> port-create.txt
127 atf_check egrep -q "Port created successfully" port-create.txt
128 atf_check egrep -q "frontend: *iscsi" port-create.txt
129 atf_check egrep -q "port: *[0-9]+" port-create.txt
132 # state, so the port's lunmap may be set before enabling it.
143 atf_set "descr" "ctladm can create a new iscsi port with a target alias"
153 atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET" -O cfiscsi_target_alias="$ALIAS"
154 echo "target: $TARGET" >> port-create.txt
155 atf_check egrep -q "Port created successfully" port-create.txt
156 atf_check egrep -q "frontend: *iscsi" port-create.txt
157 atf_check egrep -q "port: *[0-9]+" port-create.txt
178 atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_target" ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG
179 atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_portal_group_tag" ctladm port -c -d "iscsi" -O cfiscsi_target=$TARGET
185 atf_set "descr" "ctladm can set options when creating a new ioctl port"
192 atf_check -o save:port-create.txt ctladm port -c -d "ioctl" -O pp=101 -O vp=102
193 atf_check egrep -q "Port created successfully" port-create.txt
194 atf_check egrep -q "frontend: *ioctl" port-create.txt
195 atf_check egrep -q "port: *[0-9]+" port-create.txt
196 portnum=`awk '/port:/ {print $2}' port-create.txt`
200 atf_fail "Did not create the port with the specified options"
212 atf_set "descr" "ctladm can disable an ioctl port"
219 atf_check -o save:port-create.txt ctladm port -c -d "ioctl"
220 portnum=`awk '/port:/ {print $2}' port-create.txt`
222 atf_check -o ignore ctladm port -o off -p $portnum
233 atf_set "descr" "ctladm can enable an ioctl port"
240 atf_check -o save:port-create.txt ctladm port -c -d "ioctl"
241 portnum=`awk '/port:/ {print $2}' port-create.txt`
243 atf_check -o ignore ctladm port -o off -p $portnum
244 atf_check -o ignore ctladm port -o on -p $portnum
255 atf_set "descr" "ctladm can remove an ioctl port"
264 atf_check -o save:port-create.txt ctladm port -c -d "ioctl" -O pp=10001 -O vp=10002
265 portnum=`awk '/port:/ {print $2}' port-create.txt`
267 atf_check -o inline:"Port destroyed successfully\n" ctladm port -r -d ioctl -p $portnum
268 # Check that the port was removed. A new port may have been added with
272 atf_fail "port was not removed"
279 atf_set "descr" "ctladm can remove an iscsi port"
288 atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
289 portnum=`awk '/port:/ {print $2}' port-create.txt`
291 atf_check -o inline:"Port destroyed successfully\n" ctladm port -r -d iscsi -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
292 # Check that the port was removed. A new port may have been added with
297 atf_fail "port was not removed"
313 atf_check -o save:port-create.txt ctladm port -c -d "iscsi" -O cfiscsi_portal_group_tag=$PGTAG -O cfiscsi_target="$TARGET"
314 echo "target: $TARGET" >> port-create.txt
315 atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_portal_group_tag" ctladm port -r -d iscsi -O cfiscsi_target="$TARGET"
316 atf_check -s exit:1 -e match:"Missing required argument: cfiscsi_target" ctladm port -r -d iscsi -O cfiscsi_portal_group_tag=$PGTAG