Skip to content

Commit

Permalink
navi 管理 add
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Feb 11, 2017
1 parent 1e03a25 commit 1ceb2bb
Show file tree
Hide file tree
Showing 47 changed files with 841 additions and 608 deletions.
637 changes: 374 additions & 263 deletions .idea/workspace.xml

Large diffs are not rendered by default.

72 changes: 62 additions & 10 deletions cmdb/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-09-14 05:55
# Generated by Django 1.9.8 on 2017-02-11 06:21
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
Expand All @@ -17,16 +18,17 @@ class Migration(migrations.Migration):
name='Host',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('hostname', models.CharField(max_length=30)),
('os', models.CharField(max_length=30)),
('vendor', models.CharField(max_length=30)),
('product', models.CharField(max_length=30)),
('cpu_model', models.CharField(max_length=30)),
('cpu_num', models.IntegerField()),
('memory', models.IntegerField()),
('sn', models.CharField(max_length=30)),
('hostname', models.CharField(max_length=30, verbose_name='\u4e3b\u673a\u540d')),
('os', models.CharField(max_length=50, null=True, verbose_name='\u64cd\u4f5c\u7cfb\u7edf')),
('vendor', models.CharField(max_length=30, null=True)),
('group', models.CharField(max_length=30, null=True)),
('cpu_model', models.CharField(max_length=100, null=True)),
('cpu_num', models.IntegerField(null=True)),
('memory', models.IntegerField(null=True)),
('disk', models.CharField(max_length=255, null=True)),
('sn', models.CharField(max_length=60)),
('ip', models.GenericIPAddressField()),
('identity', models.CharField(max_length=32)),
('identity', models.CharField(max_length=32, null=True)),
],
),
migrations.CreateModel(
Expand All @@ -37,4 +39,54 @@ class Migration(migrations.Migration):
('members', models.ManyToManyField(to='cmdb.Host')),
],
),
migrations.CreateModel(
name='Idc',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=30, null=True)),
('address', models.CharField(max_length=100, null=True)),
('tel', models.CharField(max_length=30, null=True)),
('contact', models.CharField(max_length=30, null=True)),
],
options={
'verbose_name': '\u6570\u636e\u4e2d\u5fc3',
'verbose_name_plural': '\u6570\u636e\u4e2d\u5fc3',
},
),
migrations.CreateModel(
name='InterFace',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=30)),
('vendor', models.CharField(max_length=30, null=True)),
('bandwidth', models.CharField(max_length=30, null=True)),
('tel', models.CharField(max_length=30, null=True)),
('contact', models.CharField(max_length=30, null=True)),
('startdate', models.DateField()),
('enddate', models.DateField()),
('price', models.IntegerField(verbose_name='\u4ef7\u683c')),
],
),
migrations.CreateModel(
name='IpSource',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('net', models.CharField(max_length=30)),
('subnet', models.CharField(max_length=30, null=True)),
('describe', models.CharField(max_length=30, null=True)),
],
),
migrations.CreateModel(
name='UserInfo',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(max_length=30, null=True)),
('password', models.CharField(max_length=30, null=True)),
],
),
migrations.AddField(
model_name='host',
name='idc',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='cmdb.Idc', verbose_name='\u6240\u5728\u673a\u623f'),
),
]
Binary file modified cmdb/migrations/0001_initial.pyc
Binary file not shown.
23 changes: 0 additions & 23 deletions cmdb/migrations/0002_ipaddr.py

This file was deleted.

Binary file removed cmdb/migrations/0002_ipaddr.pyc
Binary file not shown.
27 changes: 0 additions & 27 deletions cmdb/migrations/0003_auto_20160914_2202.py

This file was deleted.

Binary file removed cmdb/migrations/0003_auto_20160914_2202.pyc
Binary file not shown.
38 changes: 0 additions & 38 deletions cmdb/migrations/0004_idc_interface.py

This file was deleted.

Binary file removed cmdb/migrations/0004_idc_interface.pyc
Binary file not shown.
22 changes: 0 additions & 22 deletions cmdb/migrations/0005_host_idc.py

This file was deleted.

Binary file removed cmdb/migrations/0005_host_idc.pyc
Binary file not shown.
32 changes: 0 additions & 32 deletions cmdb/migrations/0006_auto_20160916_0027.py

This file was deleted.

Binary file removed cmdb/migrations/0006_auto_20160916_0027.pyc
Binary file not shown.
23 changes: 0 additions & 23 deletions cmdb/migrations/0007_userinfo.py

This file was deleted.

Binary file removed cmdb/migrations/0007_userinfo.pyc
Binary file not shown.
36 changes: 0 additions & 36 deletions cmdb/migrations/0008_auto_20161006_2239.py

This file was deleted.

Binary file removed cmdb/migrations/0008_auto_20161006_2239.pyc
Binary file not shown.
55 changes: 0 additions & 55 deletions cmdb/migrations/0009_auto_20170128_2350.py

This file was deleted.

Binary file removed cmdb/migrations/0009_auto_20170128_2350.pyc
Binary file not shown.
34 changes: 0 additions & 34 deletions cmdb/migrations/0010_auto_20170203_2211.py

This file was deleted.

Binary file removed cmdb/migrations/0010_auto_20170203_2211.pyc
Binary file not shown.
Loading

0 comments on commit 1ceb2bb

Please sign in to comment.