def virtual_ip_read(*args, **kwargs):
     name = None
     props = VirtualIpType()
     props.address = '127.0.0.1'
     if kwargs['id'] == vip1_id:
         name = 'vip1'
         props.protocol = 'HTTP'
     elif kwargs['id'] == vip2_id:
         name = 'vip2'
         props.protocol = 'HTTPS'
     props.protocol_port = 80
     props.connection_limit = 100
     props.subnet_id = _uuid()
     props.admin_state = True
     vip = VirtualIp(virtual_ip_properties=props, display_name=name)
     vip.uuid = kwargs['id']
     vip.parent_uuid = _uuid()
     return vip
 def virtual_ip_read(*args, **kwargs):
     name = None
     props = VirtualIpType()
     props.address = '127.0.0.1'
     if kwargs['id'] == vip1_id:
         name = 'vip1'
         props.protocol = 'HTTP'
     elif kwargs['id'] == vip2_id:
         name = 'vip2'
         props.protocol = 'HTTPS'
     props.protocol_port = 80
     props.connection_limit = 100
     props.subnet_id = _uuid()
     props.admin_state = True
     vip = VirtualIp(virtual_ip_properties=props, display_name=name)
     vip.uuid = kwargs['id']
     vip.parent_uuid = _uuid()
     return vip
 def _virtual_ip_properties_build(self):
     props = VirtualIpType()
     props.address = '127.0.0.1'
     props.protocol = 'HTTP'
     props.protocol_port = 80
     props.connection_limit = 100
     props.subnet_id = _uuid()
     props.admin_state = True
     return props
 def _virtual_ip_properties_build(self):
     props = VirtualIpType()
     props.address = '127.0.0.1'
     props.protocol = 'HTTP'
     props.protocol_port = 80
     props.connection_limit = 100
     props.subnet_id = _uuid()
     props.admin_state = True
     return props