Comment 2 for bug 1586354

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-hyperv (master)

Reviewed: https://review.openstack.org/332715
Committed: https://git.openstack.org/cgit/openstack/networking-hyperv/commit/?id=9233449d97a9ccd2c6bd008b8c7d035174833d82
Submitter: Jenkins
Branch: master

commit 9233449d97a9ccd2c6bd008b8c7d035174833d82
Author: Claudiu Belu <email address hidden>
Date: Wed Jun 22 12:45:43 2016 +0300

    Properly updates the SG rules when SG is changed

    When a port's security group is changed, the neutron-hyperv-agent
    receives a port_update notification. Next, the agent will call the
    HyperVSecurityGroupsDriver's prepare_port_filter, in order to process
    the new security group.

    prepare_port_filter does not remove any old rules from the port.
    update_port_filter should called instead, as it removes old rules.

    Removes 'security_group_id' and 'remote_group_id' from security
    group rules, as they make checking rule equality harder, and they
    are not used in applying the rules.

    Closes-Bug: #1586354

    Change-Id: I1c6f4bd08020ae8ae2dd6ac665a3ddb602b518c4