Commit 9b00aa81 authored by Paul John King's avatar Paul John King

Removed failed attempts to set name of guest NIC --

parent 2534262c
......@@ -558,12 +558,11 @@ __END_OF_STDIN__
_get_interface_xml(){
if test $# -eq 3 ;
if test $# -eq 2 ;
then
local _BRIDGE="${1}" ;
local _ADDRESS="${2}" ;
local _DEVICE="${3}" ;
shift 3 ;
shift 2 ;
else
return 127 ;
fi ;
......@@ -585,7 +584,7 @@ _get_interface_xml(){
fi ;
_echo_stdin <<- __END_OF_STDIN__
<source${_DEVICE:+ dev='${_DEVICE}'} bridge='${_BRIDGE}'/>
<source bridge='${_BRIDGE}'/>
<model type='virtio'/>
</interface>
__END_OF_STDIN__
......@@ -640,14 +639,13 @@ _get_domain_xml(){
<controller type='ide'/>
__END_OF_STDIN__
while test $# -ge 3 ;
while test $# -ge 2 ;
do
_BRIDGE="${1#_}" ;
_ADDRESS="${2#_}" ;
_DEVICE="${3#_}" ;
shift 3 ;
shift 2 ;
_get_interface_xml "${_BRIDGE}" "${_ADDRESS}" "${_DEVICE}" || _status=1 ;
_get_interface_xml "${_BRIDGE}" "${_ADDRESS}" || _status=1 ;
done ;
_echo_stdin <<- __END_OF_STDIN__
......@@ -683,9 +681,6 @@ create_domain(){
_string="${_string##${_BRIDGE}}" ;
_string="${_string##,}" ;
_ADDRESS="${_string%%,*}" ;
_string="${_string##${_ADDRESS}}" ;
_string="${_string##,}" ;
_DEVICE="${_string%%,*}" ;
if test -z "${_BRIDGE}" ;
then
......@@ -694,7 +689,7 @@ create_domain(){
return 127 ;
fi ;
_connections="${_connections} _${_BRIDGE} _${_ADDRESS} _${_DEVICE}" ;
_connections="${_connections} _${_BRIDGE} _${_ADDRESS}" ;
;;
"?")
......@@ -838,13 +833,13 @@ The command call
creates a KVM domain with the name \`«name»\`, \`«cpu_count»\` CPUs, \`«ram»\`
MiB of RAM and the file-system image at the path \`«path»\`. The option
-c «bridge»[,«mac_address»[,«name»]]
-c «bridge»[,«mac_address»]
adds a connection to the bridge \`«bridge»\`, and optionally gives the
connecting device the MAC address \`«mac_address»\` and the name «name». The
option can be used any number of times. The \`-x\` option outputs to standard
output the \`libvirt\` XML that would be used to create the domain, but does
not create it.
connecting device the MAC address \`«mac_address»\`. The option can be used
any number of times. The \`-x\` option outputs to standard output the
\`libvirt\` XML that would be used to create the domain, but does not create
it.
The command call
......@@ -1067,11 +1062,11 @@ MiB of RAM and a qcow2 storage volume with the name \`«name»\` in the
\`default\` storage pool with the qcow2 file-system image at the path
\`«path»\` as its backing storage volume. The option
-c «bridge»[,«ipv4_address»[,«name»]]
-c «bridge»[,«ipv4_address»]
adds a connection to the bridge \`«bridge»\`, and optionally gives the
connecting device the MAC address \`«mac_address»\` and the name «name», where
\`«mac_address»\` is the MAC address output by
connecting device the MAC address \`«mac_address»\`, where \`«mac_address»\` is
that output by
${0##*/} get mac address «ipv4_address»
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment