add nick
[laas.git] / src / resource_inventory / admin.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 from django.contrib import admin
12
13 from resource_inventory.forms import InterfaceConfigurationForm
14
15 from resource_inventory.models import (
16     ResourceProfile,
17     InterfaceProfile,
18     DiskProfile,
19     CpuProfile,
20     RamProfile,
21     ResourceTemplate,
22     ResourceConfiguration,
23     InterfaceConfiguration,
24     Server,
25     Interface,
26     Network,
27     Vlan,
28     ResourceBundle,
29     Scenario,
30     Installer,
31     Opsys,
32     OPNFVConfig,
33     OPNFVRole,
34     Image,
35     RemoteInfo,
36     PhysicalNetwork,
37     NetworkConnection,
38 )
39
40
41 admin.site.register([
42     ResourceProfile,
43     InterfaceProfile,
44     DiskProfile,
45     CpuProfile,
46     RamProfile,
47     ResourceTemplate,
48     ResourceConfiguration,
49     Server,
50     Interface,
51     Network,
52     Vlan,
53     ResourceBundle,
54     Scenario,
55     Installer,
56     Opsys,
57     OPNFVConfig,
58     OPNFVRole,
59     Image,
60     PhysicalNetwork,
61     NetworkConnection,
62     RemoteInfo]
63 )
64
65
66 class InterfaceConfigurationAdmin(admin.ModelAdmin):
67     form = InterfaceConfigurationForm
68
69
70 admin.site.register(InterfaceConfiguration, InterfaceConfigurationAdmin)