]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fixed audit notifications for dhcp-agent-network
authorMaruti <maruti.kamat@hp.com>
Fri, 6 Jun 2014 08:30:51 +0000 (01:30 -0700)
committerMaruti <maruti.kamat@hp.com>
Thu, 17 Jul 2014 14:35:08 +0000 (07:35 -0700)
commitc37b243ee482643229867b739d83e4df2bfbda4c
tree820bce8f85d8a67d8e72304e7c684b4ab150604b
parentfb6e0653acfba9654c9119427ada0ad6c7211813
Fixed audit notifications for dhcp-agent-network

dhcp-agent-network-add and dhcp-agent-network-remove do not
generate audit notifications which are used for security
compliance.
CRUD operations of core network resources are handled by
neutron/api/v2/base.py. In base.py, each of create(), update(),
delete() methods makes calls to oslo.messaging.Notifier.info()
to generate these notifications.
In the proposed fix, it is fixed in a similar fashion in
extensions/dhcpagentscheduler.py inside create() and delete()
methods by introducing info() method calls inside them.

Change-Id: Ia23b981b2fbe739d22ebaa7bb0975fb9e39f881b
Closes-Bug: 1317008
neutron/extensions/dhcpagentscheduler.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py