Displaying 3 results from an estimated 3 matches for "bonding_id".
2009 Oct 06
0
[PATCH server] new host networking wui
...current_device_id = devices[j].id + 1;
+ }
+ }
+
+ // find network in networks array matching id
+ function find_network_by_id(network_id){
+ for(j = 0; j < networks.length; ++j){
+ if(networks[j].id == network_id){
+ return networks[j];
}
- $("#bonding_id").html(options);
- });
-
- $("#bonding_id option:first").attr("selected", true);
-};
-
-reset_bonding_select(); // run it once for initial content
-
-$("#nic_id").change(function () {
- reset_bonding_select();
- if($('#nic_id').val() != ""...
2009 Sep 23
0
[PATCH server] consolidated network & routing info ui's
...< ActiveRecord::Base
belongs_to :host
belongs_to :bonding_type
belongs_to :vlan
- has_many :ip_addresses, :dependent => :destroy
+ has_many :ip_addresses, :dependent => :destroy # FIXME should really be a has_one
# FIXME bondings_nics table should just be replaced with
# bonding_id column in nics table, and relationship changed
diff --git a/src/app/models/network.rb b/src/app/models/network.rb
index 89f9876..22e5692 100644
--- a/src/app/models/network.rb
+++ b/src/app/models/network.rb
@@ -18,7 +18,7 @@
class Network < ActiveRecord::Base
belongs_to :boot_type
- has_...
2009 May 15
0
[PATCH server] use service layer for Network controller.
...a }
- end
- end
-
- def edit_ip_address
- @ip_address = IpAddress.find(params[:id])
-
- @parent_type = params[:parent_type]
- @network = @ip_address.network if @ip_address.network_id
- @nic = @ip_address.nic if @ip_address.nic_id
- @bonding = @ip_address.bonding if @ip_address.bonding_id
+ alert = svc_create_ip_address(params[:ip_address])
+ render :json => {:object => "ip_address", :success => true, :alert => alert}
+ end
+ def edit_ip_address
+ svc_modify_ip_address(params[:parent_type], params[:id])
render :layout => false
- end
-
-...