Skip to content

Commit

Permalink
determining router ports
Browse files Browse the repository at this point in the history
  • Loading branch information
John McDowall committed Feb 22, 2016
1 parent c23df58 commit e3ca974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neutron/db/db_base_plugin_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,10 @@ def create_port(self, context, port):
# allowing port to be created with no fixed_ip address
#
is_router_port = (
p['device_owner'] in constants.ROUTER_INTERFACE_OWNERS_SNAT)
p['device_owner'] in constants.ROUTER_PORT_OWNERS)
LOG.info("Is it a router port: %s\n",is_router_port)
LOG.info("Device Owner is: %s\n",p['device_owner'])
LOG.info("Router port Owners: %s\n", constants.ROUTER_PORT_OWNERS)
if is_router_port:
LOG.info("is router port")
ips = self.ipam.allocate_ips_for_port_and_store(context, port,
Expand Down

0 comments on commit e3ca974

Please sign in to comment.