1 # Copyright 2019 ZTE Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 from django.contrib import admin
17 from lcm.pub.database.models import NfInstModel
18 from lcm.pub.database.models import NfvoRegInfoModel
19 from lcm.pub.database.models import StorageInstModel
20 from lcm.pub.database.models import VmInstModel
21 from lcm.pub.database.models import VNFCInstModel
22 from lcm.pub.database.models import FlavourInstModel
23 from lcm.pub.database.models import NetworkInstModel
24 from lcm.pub.database.models import SubNetworkInstModel
25 from lcm.pub.database.models import VLInstModel
26 from lcm.pub.database.models import PortInstModel
27 from lcm.pub.database.models import CPInstModel
28 from lcm.pub.database.models import SubscriptionModel
29 from lcm.pub.database.models import VNFLcmOpOccModel
32 @admin.register(NfInstModel)
33 class NfInstModelAdmin(admin.ModelAdmin):
34 list_display_links = ('nfinstid', 'nf_name')
53 "vnfConfigurableProperties",
54 "localizationLanguage",
78 "vnfConfigurableProperties",
79 "localizationLanguage",
93 @admin.register(NfvoRegInfoModel)
94 class NfvoRegInfoModelAdmin(admin.ModelAdmin):
95 list_display_links = ('nfvoid', 'vnfminstid')
126 @admin.register(StorageInstModel)
127 class StorageInstModelAdmin(admin.ModelAdmin):
128 list_display_links = ('storageid', 'vimid')
167 @admin.register(VmInstModel)
168 class VmInstModelAdmin(admin.ModelAdmin):
169 list_display_links = ('vmid', 'vimid')
221 @admin.register(VNFLcmOpOccModel)
222 class VNFLcmOpOccModelAdmin(admin.ModelAdmin):
223 list_display_links = ('id', 'operation_state')
227 "state_entered_time",
240 "state_entered_time",
256 admin.site.register(VNFCInstModel)
257 admin.site.register(FlavourInstModel)
258 admin.site.register(NetworkInstModel)
259 admin.site.register(SubNetworkInstModel)
260 admin.site.register(VLInstModel)
261 admin.site.register(PortInstModel)
262 admin.site.register(CPInstModel)
263 admin.site.register(SubscriptionModel)