Update query for bug 1334142

Update query as this bug can happen in nova-network as well.

Change-Id: I1b2e17bed5c6d0c6165fd6c6cb982e25c905b018
Related-Bug: #1368344