Displaying 6 results from an estimated 6 matches for "physical_network".
2009 Aug 05
1
[PATCH server] associated nics w/ network base class as it is in the db
fixes regression bug that got recently introduced
---
src/app/models/network.rb | 2 ++
src/app/models/physical_network.rb | 2 --
src/app/models/vlan.rb | 2 --
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/app/models/network.rb b/src/app/models/network.rb
index a4b1b8b..89f9876 100644
--- a/src/app/models/network.rb
+++ b/src/app/models/network.rb
@@ -22,6 +22,8 @@ class Netw...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...;A type must be specified.'
validates_presence_of :name,
diff --git a/src/app/models/nic.rb b/src/app/models/nic.rb
index e8b7768..f03c525 100644
--- a/src/app/models/nic.rb
+++ b/src/app/models/nic.rb
@@ -19,7 +19,10 @@
class Nic < ActiveRecord::Base
belongs_to :host
- belongs_to :physical_network
+ belongs_to :vm
+
+ belongs_to :network
+
has_many :ip_addresses, :dependent => :destroy
# FIXME bondings_nics table should just be replaced with
@@ -33,24 +36,31 @@ class Nic < ActiveRecord::Base
validates_format_of :mac,
:with => %r{^([0-9a-fA-F]{2}([:-]|$)){6}$}
-...
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 Nov 03
0
[PATCH server] suggest ip address for nics/bondings on edit host/vm network forms
...l the 'ip address' fields of the host and vm networking
forms w/ the first suggested ip.
---
src/app/controllers/vm_controller.rb | 2 +-
src/app/models/ip_address.rb | 52 +++++++++++++++++++++++++++++++++
src/app/models/network.rb | 11 +++++++
src/app/models/physical_network.rb | 6 ++++
src/app/models/vlan.rb | 6 ++++
src/app/services/host_service.rb | 2 +
src/app/views/host/edit_network.rhtml | 4 ++-
src/test/unit/ip_address_test.rb | 17 +++++++++++
src/test/unit/network_test.rb | 19 ++++++++++++
9 files change...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...ll service layer creation refactoring.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/app/controllers/network_controller.rb | 521 ++++++-----------------------
src/app/models/ip_address.rb | 11 +
src/app/models/network.rb | 12 +
src/app/models/physical_network.rb | 4 +
src/app/models/vlan.rb | 5 +
src/app/services/network_service.rb | 392 ++++++++++++++++++++++
6 files changed, 534 insertions(+), 411 deletions(-)
create mode 100644 src/app/services/network_service.rb
diff --git a/src/app/controllers/network_con...