Skip to content

Commit

Permalink
Hide LB SI left ports
Browse files Browse the repository at this point in the history
Change-Id: Ibd2a926d08af3eae62646415e087b71b9d8c323c
Closes-Bug: #1548253
  • Loading branch information
Antoine Eiche committed Feb 22, 2016
1 parent 3c51401 commit 11fd30d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/svc-monitor/svc_monitor/loadbalancer_agent.py
Expand Up @@ -35,7 +35,7 @@ def handle_service_type(self):

def pre_create_service_vm(self, instance_index, si, st, vm):
for nic in si.vn_info:
if nic['type'] == svc_info.get_right_if_str():
if nic['type'] == svc_info.get_right_if_str():
vmi = self._get_vip_vmi(si)
if not vmi:
return False
Expand All @@ -49,6 +49,9 @@ def pre_create_service_vm(self, instance_index, si, st, vm):
nic['sg-list'] = vmi.security_groups
break
nic['user-visible'] = False
elif nic['type'] == svc_info.get_left_if_str():
nic['user-visible'] = False

return True

def _get_vip_vmi(self, si):
Expand Down

0 comments on commit 11fd30d

Please sign in to comment.