Skip to content

Commit

Permalink
Reintroduce l3 router/gateway settings in l3 agent
Browse files Browse the repository at this point in the history
This partially reverts commits f37dc6e, e969a6f

Issue rcbops/chef-cookbooks#933

(cherry picked from commit 5712592)
  • Loading branch information
claco committed May 27, 2014
1 parent 7df0dd7 commit 7811c63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/neutron-l3-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@
"neutron_external_bridge" => node["neutron"][plugin]["external_bridge"],
"nova_metadata_ip" => metadata_ip,
"neutron_plugin" => node["neutron"]["plugin"],
"l3_router_id" => (node["neutron"]["l3"]["router_id"] rescue nil),
"l3_gateway_net_id" => (node["neutron"]["l3"]["gateway_external_net_id"] rescue nil),
"send_arp_for_ha" => node["neutron"]["send_arp_for_ha"]
)
notifies :restart, "service[neutron-l3-agent]", :delayed
Expand Down
4 changes: 4 additions & 0 deletions templates/default/l3_agent.ini.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[DEFAULT]
external_network_bridge = <%= @neutron_external_bridge %>

# Once networks are created please update the environment variables neutron[l3][router_id], neutron[l3][gateway_external_net_id]
router_id = <%= @l3_router_id %>
gateway_external_network_id = <%= @l3_gateway_net_id %>

metadata_ip = <%= @nova_metadata_ip %>
metadata_port = 8775

Expand Down

0 comments on commit 7811c63

Please sign in to comment.