Displaying 9 results from an estimated 9 matches for "add_attribute".
2007 Oct 27
3
rake spec:rcov failing
...failures, 48 pending
/usr/local/lib/ruby/1.8/rexml/text.rb:292:in `normalize'': private
method `gsub'' called for 0:Fixnum (NoMethodError)
from /usr/local/lib/ruby/1.8/rexml/element.rb:1084:in `[]=''
from /usr/local/lib/ruby/1.8/rexml/element.rb:586:in
`add_attribute''
from (eval):490:in `table_''
from (eval):490:in `each''
from (eval):490:in `table_''
from (eval):490:in `each''
from (eval):490:in `table_''
from /usr/local/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/li...
2005 Jul 18
0
why $cdr{'CALLERID'} and $cdr{'DNID'} are empty in perl agi connected with asterisk manager
...acc {
my (%cdr) = @_;
my $r = new Authen::Radius(Host =>
$cdr{'RADIUS_Server'}, Secret =>
$cdr{'RADIUS_Secret'});
if( !defined $r ) {
syslog('crit', "RADIUS host '$cdr{'RADIUS_Server'}'
ERROR");
return;
}
$r->clear_attributes();
$r->add_attributes (
{ Name => 'NAS-IP-Address', Value =>
$cdr{'NAS_IP_Address'} },
{ Name => 'NAS-Port-Name', Value => $cdr{'CHANNEL'}
},
{ Name => 'User-Name', Value =>
$cdr{'ACCOUNTCODE'} },
{ Name => 'Calling-Statio...
2010 Aug 25
2
[PATCH] Virtio support
...;virtio"})
else
diskdev.add_element("source", {"dev" => disk})
diskdev.add_element("target", {"dev" => devs[which_device]})
@@ -92,6 +96,10 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice,
interface.add_attribute("type", "bridge")
interface.add_element("mac", {"address" => nic[:mac]})
interface.add_element("source", {"bridge" => nic[:interface]})
+
+ if nic[:virtio]
+ interface.add_element("model", {"type"...
2010 Sep 21
1
[PATCH] Introduce ability to select any kind of nic model, not just default or virtio.
...ver {
cursor: pointer;
}
diff --git a/src/task-omatic/task_vm.rb b/src/task-omatic/task_vm.rb
index 9efda1c..a3391c0 100644
--- a/src/task-omatic/task_vm.rb
+++ b/src/task-omatic/task_vm.rb
@@ -99,10 +99,7 @@ def create_vm_xml(name, uuid, memAllocated, memUsed, vcpus, bootDevice,
interface.add_attribute("type", "bridge")
interface.add_element("mac", {"address" => nic[:mac]})
interface.add_element("source", {"bridge" => nic[:interface]})
-
- if nic[:virtio]
- interface.add_element("model", {"type"...
2006 Jul 27
16
Net::LDAP 0.0.3 released, adds TLS encryption
We''re pleased to announce version 0.0.3 of Net::LDAP, the first
pure-Ruby LDAP library. Net::LDAP intends to be a feature-complete
LDAP client which can access as much as possible of the functionality
of the most-used LDAP server implementations. This library does
not wrap any existing native-code LDAP libraries, creates no
Ruby extensions, and has no dependencies external to Ruby.
2006 Aug 15
6
Net::LDAP 0.0.4 released
Announcing version 0.0.4 of Net::LDAP, the pure-Ruby LDAP library.
Thanks to the many people who have used this library and sent in
comments,
suggestions, feature requests, and patches. An even bigger thank-you to
the
folks who have made themselves available to help with testing.
Net::LDAP has been quite stable for several months now, so we bumped
the development status of the library up to
2009 Jul 24
1
permit many-to-many vms / networks relationship redux
redux patchset permitting a vm to be associated with
multiple networks and vice-versa. updated patchset so
as to be applicable against current oVirt server HEAD
these patches may be applied in any order, they all
need to be pushed together
2009 Jul 09
2
permit many-to-many vms / networks relationship
This patchset contains changes to the ovirt server
frontend, backend, and tests components, permitting vms
to be associated with multiple networks and vice versa.
Also included are two patches which are required for the frontend
bits; a patch adding collapsable sections to the vm form, which
in itself depends on the second patch that provides default values
for the cpu and memory vm table fields
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...uot;mac", {"address" => macAddr})
- doc.root.elements["devices"].elements["interface"].add_element("source", {"bridge" => bridge})
- end
+ net_interfaces.each { |nic|
+ interface = Element.new("interface")
+ interface.add_attribute("type", "bridge")
+ interface.add_element("mac", {"address" => nic[:mac]})
+ interface.add_element("source", {"bridge" => nic[:interface]})
+ doc.root.elements["devices"] << interface
+ }
doc.root.eleme...