This fixes a small bug in
https://gerrit.opnfv.org/gerrit/#/c/21833/
JIRA: JIRA: SFC-48
Change-Id: I92ad973369109a107700443c074dfae6f6c21516
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
function sfc_prepare(){
ids=($(neutron security-group-list|grep default|awk '{print $2}'))
for id in ${ids[@]}; do
- if ! neutron security-group-show $id|grep 22 &>/dev/null; then
+ if ! neutron security-group-show $id|grep "22/tcp" &>/dev/null; then
neutron security-group-rule-create --protocol tcp \
--port-range-min 22 --port-range-max 22 --direction ingress $id
neutron security-group-rule-create --protocol tcp \