Security group applies to only VM port. Not to internal used port.
router interface port, dhc port and floating ip port.
which can be identified by its device owner.
"network:{routerxxx, dhcp, floatingip}"
It can be realized by forcibly disabling port security on those port.
With port security extension enabled, neutron disabled port security.
The extension is, however, optional, so ODL shouldn't depend on it.
Partial-bug: #7128
Change-Id: I3295ebc0e77d387cdfb80be318ef048ba9763994
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
(cherry picked from commit
5da83fc96656d5be54b3451a2f221a2e780e52d4)
public Boolean getPortSecurityEnabled() {
if (portSecurityEnabled == null) {
+ if (deviceOwner != null && deviceOwner.startsWith("network:")) {
+ // port with device owner of network:xxx is created by
+ // neutorn for its internal use. So security group doesn't apply.
+ // router interface, dhcp port and floating ip.
+ return false;
+ }
return true;
}
return portSecurityEnabled;