Merge "Enhance PDF/IDF Support"
[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.models import (
14     HostProfile,
15     InterfaceProfile,
16     DiskProfile,
17     CpuProfile,
18     RamProfile,
19     GenericResourceBundle,
20     GenericResource,
21     GenericHost,
22     GenericInterface,
23     Host,
24     Interface,
25     Network,
26     Vlan,
27     ResourceBundle,
28     Scenario,
29     Installer,
30     Opsys,
31     ConfigBundle,
32     OPNFVConfig,
33     OPNFVRole,
34     Image,
35     HostConfiguration
36 )
37
38 profiles = [HostProfile, InterfaceProfile, DiskProfile, CpuProfile, RamProfile]
39
40 admin.site.register(profiles)
41
42 generics = [GenericResourceBundle, GenericResource, GenericHost, GenericInterface]
43
44 admin.site.register(generics)
45
46 physical = [Host, Interface, Network, Vlan, ResourceBundle]
47
48 admin.site.register(physical)
49
50 config = [Scenario, Installer, Opsys, ConfigBundle, OPNFVConfig, OPNFVRole, Image, HostConfiguration]
51
52 admin.site.register(config)