Neutron L3 service cleanups for hiera json hook
authorDan Prince <dprince@redhat.com>
Thu, 3 Nov 2016 11:53:46 +0000 (07:53 -0400)
committerDan Prince <dprince@redhat.com>
Thu, 10 Nov 2016 12:44:15 +0000 (07:44 -0500)
commit36aa652247a83c868a25622bce54cc2b0247dc06
treeaf8df6b5dfad23be25cab78e07d5e865c0c665d7
parent2ad72b7e966378029fff5c597b0245d78c810095
Neutron L3 service cleanups for hiera json hook

This patch resolves a few issues I noticed when porting our
Neutron L3 service to support the new heat hiera agent hook (which
uses Json instead of Yaml).

 - If NeutronExternalNetworkBridge is an emptry string '' Json was
   dropping the single quotes thus causing the bridge to get set
   incorrectly in the config file. To correct this we use a heat
   conditional to avoid setting the external bridge (the '' default
   is what we want in this case) if the bridge is an empty string.

Change-Id: I5037cbde6b76a37a4c22c4616278420e9d759109
Partial-bug: #1596373
puppet/services/neutron-l3.yaml