Allow non-default controller-dhcp-enabled at init 23/44423/1
authorVishal Thapar <vishal.thapar@ericsson.com>
Thu, 18 Aug 2016 14:31:58 +0000 (20:01 +0530)
committerSam Hague <shague@redhat.com>
Sat, 20 Aug 2016 02:12:25 +0000 (02:12 +0000)
commitfc6098c5b745d426eda4125252167a48a8feea94
tree80da88e2682c08d2d07444dddd461cac64a0a449
parentdf74876c6769b3a8472435853f05dfb816aad7a2
Allow non-default controller-dhcp-enabled at init

Currently controller-dhcp-enabled cn only be set through yang and defaults
to false. To change one must wait for bundles to come up and change
through restconf. This adds option to specif a different default at bring
up.

To set the default for controller-dhcp-enabled:

1. Change the value in dhcpservice/.../netvirt-dhcpservice.xml
2. Copy the file into the unzipped distribution before starting karaf:
  cd netvirt/vpnservice
  mkdir -p ./distribution/karaf/target/assembly/etc/opendaylight/datastore/initial/config
  cp dhcpservice/impl/src/main/resources/netvirt-dhcpservice.xml ./distribution/karaf/target/assembly/etc/opendaylight/datastore/initial/config

Change-Id: I6768e117515a4ff2c52e70961efb3aeac65c8d5f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
(cherry picked from commit d115bc161fe0d562c23ae5d041778590616ca88d)
vpnservice/dhcpservice/dhcpservice-impl/src/main/java/org/opendaylight/netvirt/dhcpservice/DhcpManager.java
vpnservice/dhcpservice/dhcpservice-impl/src/main/resources/netvirt-dhcpservice.xml [new file with mode: 0644]
vpnservice/dhcpservice/dhcpservice-impl/src/main/resources/org/opendaylight/blueprint/dhcpservice-impl.xml