Пример #1
0
class SupernetAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'supernet_av'

    entity = models.ForeignKey(Supernet)
    attribute = EAVAttributeField(Attribute)
Пример #2
0
class NetworkAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'network_av'

    entity = models.ForeignKey(Network)
    attribute = EAVAttributeField(Attribute)
Пример #3
0
class SOAAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'soa_av'

    entity = models.ForeignKey(SOA)
    attribute = EAVAttributeField(Attribute,
                                  type_choices=(ATTRIBUTE_INVENTORY, ))
Пример #4
0
class WorkgroupAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'workgroup_av'


    entity = models.ForeignKey(Workgroup)
    attribute = EAVAttributeField(Attribute)
Пример #5
0
class DynamicInterfaceAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = "dynamic_interface_av"

    entity = models.ForeignKey(DynamicInterface)
    attribute = EAVAttributeField(Attribute,
                                  type_choices=(ATTRIBUTE_INVENTORY, ))
Пример #6
0
class WorkgroupAV(EAVBase):
    class Meta(EAVBase.Meta):
        app_label = 'cyder'
        db_table = 'workgroup_av'

    entity = models.ForeignKey(Workgroup)
    attribute = EAVAttributeField(Attribute,
                                  type_choices=(ATTRIBUTE_OPTION,
                                                ATTRIBUTE_STATEMENT))