Fix preseed MAC address fetch method 19/30619/1
authorQiLiang <liangqi1@huawei.com>
Thu, 16 Mar 2017 02:07:45 +0000 (10:07 +0800)
committerQiLiang <liangqi1@huawei.com>
Thu, 16 Mar 2017 02:31:47 +0000 (10:31 +0800)
commit532b1906b0644d836cb5f54f32a888ada35a89fb
tree20939a70e5f89680338abc3ea4139bceffdbac7a
parente1bcc84781b51e8078387d071c24eeead2700cb9
Fix preseed MAC address fetch method

JIRA: -

e.g.:

root@host1:~# ip link show eth4
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether ec:38:8f:79:fa:5c brd ff:ff:ff:ff:ff:ff
root@host1:~# echo $(echo $@ | cut -d' ' -f17)
ec:38:8f:79:fa:5c

root@host4:~# ip link show eth4
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop portid 0100000000000000000000000000003000 state DOWN mode DEFAULT group default qlen 1000
    link/ether e0:36:76:d2:34:73 brd ff:ff:ff:ff:ff:ff
root@host4:~# echo $(echo $@ | cut -d' ' -f17)
1000
root@host4:~# echo $(echo $@ | cut -d' ' -f19)
e0:36:76:d2:34:73

Change-Id: I916c19807da724e9ba471376f81f3c763b9340d5
Signed-off-by: QiLiang <liangqi1@huawei.com>
deploy/adapters/cobbler/snippets/preseed_post_install_network_config