Use a better default value for the nic type of newly defined nics
authorPlamen Dimitrov <pdimitrov@pevogam.com>
Fri, 4 Oct 2019 14:53:16 +0000 (21:53 +0700)
committerPlamen Dimitrov <pdimitrov@pevogam.com>
Fri, 4 Oct 2019 15:00:22 +0000 (22:00 +0700)
src/mk_config.py

index 60538c7..fed8a53 100644 (file)
@@ -173,7 +173,7 @@ def nic(ip="1.2.3.4", netmask="255.255.0.0", mac="00:00:00:00:00:00", suffix="ho
     log.info("Create arnied nic configuration")
     nic = batch_update_cnf(
         build_nic.BuildNIC(data="", instance=2, line_no=1),
-        [(Update, ("NIC_TYPE", 0, "PROXYARP")),
+        [(Update, ("NIC_TYPE", 0, "NATLAN")),
          (Update, ("NIC_LAN_IP", 0, ip)),
          (Update, ("NIC_LAN_NETMASK", 0, netmask)),
          (Update, ("NIC_MAC", 0, mac))])