git://developer.intra2net.com
/
pyi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d344c1f
)
Use a better default value for the nic type of newly defined nics
author
Plamen Dimitrov
<pdimitrov@pevogam.com>
Fri, 4 Oct 2019 14:53:16 +0000 (21:53 +0700)
committer
Plamen Dimitrov
<pdimitrov@pevogam.com>
Fri, 4 Oct 2019 15:00:22 +0000 (22:00 +0700)
src/mk_config.py
patch
|
blob
|
blame
|
history
diff --git
a/src/mk_config.py
b/src/mk_config.py
index
60538c7
..
fed8a53
100644
(file)
--- a/
src/mk_config.py
+++ b/
src/mk_config.py
@@
-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))])