def update_vip(self, context, id, vip):
        LOG.debug("MidonetPluginV2.update_vip called: id=%(id)r, "
                  "vip=%(vip)r", {'id': id, 'vip': vip})

        with context.session.begin(subtransactions=True):
            v = super(MidonetPluginV2, self).update_vip(context, id, vip)
            self.api_cli.update_vip(id, v)

        LOG.debug("MidonetPluginV2.update_vip exiting: id=%(id)r, "
                  "vip=%(vip)r", {'id': id, 'vip': v})
        return v