Displaying 1 result from an estimated 1 matches for "datenbruch".
2007 Aug 10
1
Bug#437127: xen-utils-common: vif-common fails to identify ip address of ethernet device
...-common.
The function ip_of uses the following shell code to extract the
address:
ip addr show "$1" | awk "/^.*inet.*$1\$/{print \$2}" | sed -n '1 s,/.*,,p'
This code however fails if no slash is present in the address, which
is the case in my configuration:
stefan at datenbruch:/etc/xen/scripts$ ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:16:17:90:b4:35 brd ff:ff:ff:ff:ff:ff
inet 88.198.12.XXX peer 88.198.12.XXX/32 brd 88.255.255.255 scope global eth0
[...]
I changed the line to:
ip addr s...