Permit control of systemd-networkd IPv6AcceptRA configuration

The IPv6AcceptRA boolean is always set to "false". This effectively
blocks IPv6 DHCP address assignment. There may be OpenBMC users that
will prefer this boolean to be "true" the first time the BMC boots.

This commit adds a compile time switch, that is added to the
phosphor-network.bbappend file. Adding
EXTRA_OECONF_append = " --enable-ipv6-accept-ra=yes"
to the bbappend file changes the IPv6AcceptRA boolean in the network
configuration file to "true". This does not overwrite the IPv6AcceptRA
value present in a network configuration file that already exists. It
only assigns a value if the network configuration file is not present.

Tested:
* Erased the entire SPI device, and programmed a new image with the
  --enable-ipv6-accept-ra=yes. Confirmed that the IPv6AcceptRA value in
  the NIC configuration file was "true".

* Performed "rm /etc/system/network/00-bmc-eth0.network", and
  rebooted. Confirmed that the IPv6AcceptRA value in the NIC
  configuration file was "true".

* Removed the --enable-ipv6-accept-ra from the bbappend file, rebuilt,
  erased the entire SPI. Confirmed that the IPv6AcceptRA value in the
  NIC configuration file was "false".

* Performed "rm /etc/system/network/00-bmc-eth0.network", and
  rebooted. Confirmed that the IPv6AcceptRA value in the NIC
  configuration file was "false".

* Rebooted in both test cases and confirmed the setting did not change
  in the ".network" file already present.

Change-Id: Ieb6309ddcf2d003ed398e1c0c09bdee0670f6fcf
Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
2 files changed