Skip to content

Commit

Permalink
Merge pull request #69 from djberg96/scvmm_vm_networks
Browse files Browse the repository at this point in the history
Add parent/child support for lans, as well as subnets
  • Loading branch information
Fryguy authored Oct 3, 2017
2 parents d872c3a + ceaed23 commit 6d11d07
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/migrate/20170919211256_add_parent_id_to_lans.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddParentIdToLans < ActiveRecord::Migration[5.0]
def change
add_column :lans, :parent_id, :bigint
end
end
11 changes: 11 additions & 0 deletions db/migrate/20170919211745_create_subnets.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class CreateSubnets < ActiveRecord::Migration[5.0]
def change
create_table :subnets do |t|
t.string :ems_ref
t.string :name
t.string :cidr
t.string :type
t.bigint :lan_id
end
end
end
8 changes: 8 additions & 0 deletions db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,7 @@ lans:
- computed_allow_promiscuous
- computed_forged_transmits
- computed_mac_changes
- parent_id
ldap_domains:
- id
- name
Expand Down Expand Up @@ -6110,6 +6111,13 @@ storages_vms_and_templates:
- storage_id
- vm_or_template_id
- id
subnets:
- id
- ems_ref
- name
- cidr
- type
- lan_id
switches:
- id
- name
Expand Down

0 comments on commit 6d11d07

Please sign in to comment.