Use common constants in neutron-lib

AGENT_REVIVED has been moved from neutron.common.constants
into neutron-lib.

Change-Id: I5f7fc42a5d9c2e0246d6274223247c6efd5e67e5
This commit is contained in:
fumihiko kakuma 2017-10-23 10:41:11 +09:00
parent 95d2bdfde1
commit e71d151668
1 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,7 @@
import collections
from neutron_lib.agent import constants as agent_consts
from neutron_lib import context
from neutron_lib.utils import runtime
from oslo_config import cfg
@ -25,7 +26,6 @@ from oslo_service import periodic_task
from oslo_utils import importutils
from neutron.agent import rpc as agent_rpc
from neutron.common import constants as n_const
from neutron.common import rpc as n_rpc
from neutron.common import topics
from neutron.common import utils
@ -682,7 +682,7 @@ class BgpDrAgentWithStateReport(BgpDrAgent):
ctx = context.get_admin_context_without_session()
agent_status = self.state_rpc.report_state(ctx, self.agent_state,
True)
if agent_status == n_const.AGENT_REVIVED:
if agent_status == agent_consts.AGENT_REVIVED:
LOG.info(_LI("Agent has just been revived. "
"Scheduling full sync"))
self.schedule_full_resync(