Set vpn agent's agent_state['binary'] attribute

No vpn agent related information is shown when running
agent-list cmd, although it's enabled. Set vpn agent
binary attribute to remind admin user that the vpn agent
is active not the l3 agent.

Change-Id: I7fa58f9a5a94f7fe4381c994ae425154a2a1c1d8
Closes-Bug: #1472494
This commit is contained in:
leejian0612 2015-07-08 17:28:23 +08:00
parent 6665245d22
commit 8c288cc768

View File

@ -34,6 +34,7 @@ class VPNAgent(l3_agent.L3NATAgentWithStateReport):
"""VPNAgent class which can handle vpn service drivers."""
def __init__(self, host, conf=None):
super(VPNAgent, self).__init__(host=host, conf=conf)
self.agent_state['binary'] = 'neutron-vpn-agent'
self.service = vpn_service.VPNService(self)
self.device_drivers = self.service.load_device_drivers(host)