Skip to content

Commit

Permalink
install instractions + new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
viroge committed Feb 10, 2023
1 parent 5eac311 commit d8f3057
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ A [Netbox](https://github.com/netbox-community/netbox) plugin for storage relate
- Storage Sessions: the "source" of a session is a Netbox Virtualization Cluster, the "destination" is the LUN Group
- VMDK: can be assigned to a VM and a datastore

# Install
python3 setup.py build
python3 setup.py sdist

Add dist/netbox-storage* to netbox/local_requirements.txt
Add netbox_storage to PLUGINS in configuration.py:
PLUGINS = ['netbox_storage',]

# Usage

1. Create regular Netbox objects: a storage Device, a virtualization Cluster, and a Virtual Machine
Expand Down
18 changes: 18 additions & 0 deletions netbox_storage/migrations/0003_lun_wwn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.1.6 on 2023-02-10 19:34

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('netbox_storage', '0002_alter_lun_size_alter_storagepool_size_and_more'),
]

operations = [
migrations.AddField(
model_name='lun',
name='wwn',
field=models.CharField(blank=True, max_length=64),
),
]

0 comments on commit d8f3057

Please sign in to comment.