Documentation
¶
Index ¶
- Variables
- type Action
- type Apps
- type AsnAllocationPools
- type BgpAfEvpnNeighbors
- type BgpAfIPNeighbors
- type BgpEvpnAfs
- type BgpIPAfs
- type ClusterMembers
- type ColumnInfo
- type Devices
- type EventHistorys
- type Evpns
- type ExecutionLogs
- type FabricErrors
- type FabricProperties
- type Fabrics
- type IPAllocationPools
- type IPPairAllocationPools
- type IPPrefixLists
- type InterfaceSwitchConfigs
- type LldpNeighbors
- type MctClusterConfigs
- type MctClusterDetails
- type Model
- type OverlayGateways
- type PeerGroups
- type PhysInterfaces
- type RemoteNeighborSwitchConfigs
- type RouterBgps
- type RouterPims
- type SwitchConfigs
- type TableInfo
- type UsedAsns
- type UsedIPPairs
- type UsedIps
Constants ¶
This section is empty.
Variables ¶
var ( // Create action when record is created Create = Action(0) // RetrieveOne action when a record is retrieved from db RetrieveOne = Action(1) // RetrieveMany action when record(s) are retrieved from db RetrieveMany = Action(2) // Update action when record is updated in db Update = Action(3) // Delete action when record is deleted in db Delete = Action(4) // FetchDDL action when fetching ddl info from db FetchDDL = Action(5) )
Functions ¶
This section is empty.
Types ¶
type Apps ¶
type Apps struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Name sql.NullString `gorm:"column:name;type:varchar;size:30;"`
//[ 2] description varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
Description sql.NullString `gorm:"column:description;type:varchar;size:255;"`
//[ 3] url varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
URL sql.NullString `gorm:"column:url;type:varchar;size:30;"`
//[ 4] port varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Port sql.NullString `gorm:"column:port;type:varchar;size:30;"`
}
Apps struct is a row record of the apps table in the myapp database
func (*Apps) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*Apps) Prepare ¶
func (a *Apps) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
type AsnAllocationPools ¶
type AsnAllocationPools struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] asn bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
Asn sql.NullInt64 `gorm:"column:asn;type:bigint;"`
//[ 3] device_role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceRole sql.NullString `gorm:"column:device_role;type:varchar;size:30;"`
}
AsnAllocationPools struct is a row record of the asn_allocation_pools table in the myapp database
func (*AsnAllocationPools) BeforeSave ¶
func (a *AsnAllocationPools) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*AsnAllocationPools) Prepare ¶
func (a *AsnAllocationPools) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*AsnAllocationPools) TableInfo ¶
func (a *AsnAllocationPools) TableInfo() *TableInfo
TableInfo return table meta data
func (*AsnAllocationPools) TableName ¶
func (a *AsnAllocationPools) TableName() string
TableName sets the insert table name for this struct type
func (*AsnAllocationPools) Validate ¶
func (a *AsnAllocationPools) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type BgpAfEvpnNeighbors ¶
type BgpAfEvpnNeighbors struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] remote_interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteInterfaceID sql.NullInt64 `gorm:"column:remote_interface_id;type:int;"`
//[ 4] remote_device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteDeviceID sql.NullInt64 `gorm:"column:remote_device_id;type:int;"`
//[ 5] af_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
AfID sql.NullInt64 `gorm:"column:af_id;type:int;"`
//[ 6] neighbor_afi varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
NeighborAfi sql.NullString `gorm:"column:neighbor_afi;type:varchar;size:100;"`
//[ 7] neighbor_safi varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
NeighborSafi sql.NullString `gorm:"column:neighbor_safi;type:varchar;size:100;"`
//[ 8] neighbor_ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NeighborIPAddress sql.NullString `gorm:"column:neighbor_ip_address;type:varchar;size:30;"`
//[ 9] remote_asn bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
RemoteAsn sql.NullInt64 `gorm:"column:remote_asn;type:bigint;"`
//[10] peer_group_name varchar(64) null: true primary: false isArray: false auto: false col: varchar len: 64 default: []
PeerGroupName sql.NullString `gorm:"column:peer_group_name;type:varchar;size:64;"`
//[11] encapsulation_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
EncapsulationType sql.NullString `gorm:"column:encapsulation_type;type:varchar;size:30;"`
//[12] bfd_enable tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
BfdEnable sql.NullInt64 `gorm:"column:bfd_enable;type:tinyint;"`
//[13] bfd_tx int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdTx sql.NullInt64 `gorm:"column:bfd_tx;type:int;"`
//[14] bfd_rx int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdRx sql.NullInt64 `gorm:"column:bfd_rx;type:int;"`
//[15] bfd_multiplier int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdMultiplier sql.NullInt64 `gorm:"column:bfd_multiplier;type:int;"`
//[16] e_bgp_mhop int null: true primary: false isArray: false auto: false col: int len: -1 default: []
EBgpMhop sql.NullInt64 `gorm:"column:e_bgp_mhop;type:int;"`
//[17] nexthop_unchanged tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
NexthopUnchanged sql.NullInt64 `gorm:"column:nexthop_unchanged;type:tinyint;"`
//[18] enable_peer_as_check tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
EnablePeerAsCheck sql.NullInt64 `gorm:"column:enable_peer_as_check;type:tinyint;"`
//[19] is_activated varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IsActivated sql.NullString `gorm:"column:is_activated;type:varchar;size:30;"`
//[20] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
BgpAfEvpnNeighbors struct is a row record of the bgp_af_evpn_neighbors table in the myapp database
func (*BgpAfEvpnNeighbors) BeforeSave ¶
func (b *BgpAfEvpnNeighbors) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*BgpAfEvpnNeighbors) Prepare ¶
func (b *BgpAfEvpnNeighbors) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*BgpAfEvpnNeighbors) TableInfo ¶
func (b *BgpAfEvpnNeighbors) TableInfo() *TableInfo
TableInfo return table meta data
func (*BgpAfEvpnNeighbors) TableName ¶
func (b *BgpAfEvpnNeighbors) TableName() string
TableName sets the insert table name for this struct type
func (*BgpAfEvpnNeighbors) Validate ¶
func (b *BgpAfEvpnNeighbors) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type BgpAfIPNeighbors ¶
type BgpAfIPNeighbors struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] remote_interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteInterfaceID sql.NullInt64 `gorm:"column:remote_interface_id;type:int;"`
//[ 4] remote_device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteDeviceID sql.NullInt64 `gorm:"column:remote_device_id;type:int;"`
//[ 5] af_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
AfID sql.NullInt64 `gorm:"column:af_id;type:int;"`
//[ 6] neighbor_afi varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
NeighborAfi sql.NullString `gorm:"column:neighbor_afi;type:varchar;size:100;"`
//[ 7] neighbor_safi varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
NeighborSafi sql.NullString `gorm:"column:neighbor_safi;type:varchar;size:100;"`
//[ 8] neighbor_ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NeighborIPAddress sql.NullString `gorm:"column:neighbor_ip_address;type:varchar;size:30;"`
//[ 9] remote_asn bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
RemoteAsn sql.NullInt64 `gorm:"column:remote_asn;type:bigint;"`
//[10] peer_group_name varchar(64) null: true primary: false isArray: false auto: false col: varchar len: 64 default: []
PeerGroupName sql.NullString `gorm:"column:peer_group_name;type:varchar;size:64;"`
//[11] bfd_enable tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
BfdEnable sql.NullInt64 `gorm:"column:bfd_enable;type:tinyint;"`
//[12] bfd_tx int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdTx sql.NullInt64 `gorm:"column:bfd_tx;type:int;"`
//[13] bfd_rx int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdRx sql.NullInt64 `gorm:"column:bfd_rx;type:int;"`
//[14] bfd_multiplier int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdMultiplier sql.NullInt64 `gorm:"column:bfd_multiplier;type:int;"`
//[15] e_bgp_mhop int null: true primary: false isArray: false auto: false col: int len: -1 default: []
EBgpMhop sql.NullInt64 `gorm:"column:e_bgp_mhop;type:int;"`
//[16] enable_peer_as_check tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
EnablePeerAsCheck sql.NullInt64 `gorm:"column:enable_peer_as_check;type:tinyint;"`
//[17] is_activated varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IsActivated sql.NullString `gorm:"column:is_activated;type:varchar;size:30;"`
//[18] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
BgpAfIPNeighbors struct is a row record of the bgp_af_ip_neighbors table in the myapp database
func (*BgpAfIPNeighbors) BeforeSave ¶
func (b *BgpAfIPNeighbors) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*BgpAfIPNeighbors) Prepare ¶
func (b *BgpAfIPNeighbors) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*BgpAfIPNeighbors) TableInfo ¶
func (b *BgpAfIPNeighbors) TableInfo() *TableInfo
TableInfo return table meta data
func (*BgpAfIPNeighbors) TableName ¶
func (b *BgpAfIPNeighbors) TableName() string
TableName sets the insert table name for this struct type
func (*BgpAfIPNeighbors) Validate ¶
func (b *BgpAfIPNeighbors) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type BgpEvpnAfs ¶
type BgpEvpnAfs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] router_bgp_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RouterBgpID sql.NullInt64 `gorm:"column:router_bgp_id;type:int;"`
//[ 4] retain_route_target_all tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
RetainRouteTargetAll sql.NullInt64 `gorm:"column:retain_route_target_all;type:tinyint;"`
//[ 5] graceful_restart tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
GracefulRestart sql.NullInt64 `gorm:"column:graceful_restart;type:tinyint;"`
//[ 6] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
BgpEvpnAfs struct is a row record of the bgp_evpn_afs table in the myapp database
func (*BgpEvpnAfs) BeforeSave ¶
func (b *BgpEvpnAfs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*BgpEvpnAfs) Prepare ¶
func (b *BgpEvpnAfs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*BgpEvpnAfs) TableInfo ¶
func (b *BgpEvpnAfs) TableInfo() *TableInfo
TableInfo return table meta data
func (*BgpEvpnAfs) TableName ¶
func (b *BgpEvpnAfs) TableName() string
TableName sets the insert table name for this struct type
func (*BgpEvpnAfs) Validate ¶
func (b *BgpEvpnAfs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type BgpIPAfs ¶
type BgpIPAfs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] router_bgp_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RouterBgpID sql.NullInt64 `gorm:"column:router_bgp_id;type:int;"`
//[ 4] neighbor_afi varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
NeighborAfi sql.NullString `gorm:"column:neighbor_afi;type:varchar;size:100;"`
//[ 5] neighbor_safi varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
NeighborSafi sql.NullString `gorm:"column:neighbor_safi;type:varchar;size:100;"`
//[ 6] vrf varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Vrf sql.NullString `gorm:"column:vrf;type:varchar;size:100;"`
//[ 7] graceful_restart tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
GracefulRestart sql.NullInt64 `gorm:"column:graceful_restart;type:tinyint;"`
//[ 8] max_path int null: true primary: false isArray: false auto: false col: int len: -1 default: []
MaxPath sql.NullInt64 `gorm:"column:max_path;type:int;"`
//[ 9] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
BgpIPAfs struct is a row record of the bgp_ip_afs table in the myapp database
func (*BgpIPAfs) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*BgpIPAfs) Prepare ¶
func (b *BgpIPAfs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
type ClusterMembers ¶
type ClusterMembers struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] cluster_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
ClusterID sql.NullInt64 `gorm:"column:cluster_id;type:int;"`
//[ 3] interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceID sql.NullInt64 `gorm:"column:interface_id;type:int;"`
//[ 4] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 5] remote_device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteDeviceID sql.NullInt64 `gorm:"column:remote_device_id;type:int;"`
//[ 6] interface_name varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
InterfaceName sql.NullString `gorm:"column:interface_name;type:varchar;size:255;"`
//[ 7] interface_type varchar(64) null: true primary: false isArray: false auto: false col: varchar len: 64 default: []
InterfaceType sql.NullString `gorm:"column:interface_type;type:varchar;size:64;"`
//[ 8] interface_speed int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceSpeed sql.NullInt64 `gorm:"column:interface_speed;type:int;"`
//[ 9] remote_interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteInterfaceID sql.NullInt64 `gorm:"column:remote_interface_id;type:int;"`
//[10] remote_interface_name varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
RemoteInterfaceName sql.NullString `gorm:"column:remote_interface_name;type:varchar;size:255;"`
//[11] remote_interface_type varchar(64) null: true primary: false isArray: false auto: false col: varchar len: 64 default: []
RemoteInterfaceType sql.NullString `gorm:"column:remote_interface_type;type:varchar;size:64;"`
//[12] remote_interface_speed int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteInterfaceSpeed sql.NullInt64 `gorm:"column:remote_interface_speed;type:int;"`
//[13] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
ClusterMembers struct is a row record of the cluster_members table in the myapp database
func (*ClusterMembers) BeforeSave ¶
func (c *ClusterMembers) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*ClusterMembers) Prepare ¶
func (c *ClusterMembers) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*ClusterMembers) TableInfo ¶
func (c *ClusterMembers) TableInfo() *TableInfo
TableInfo return table meta data
func (*ClusterMembers) TableName ¶
func (c *ClusterMembers) TableName() string
TableName sets the insert table name for this struct type
func (*ClusterMembers) Validate ¶
func (c *ClusterMembers) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type ColumnInfo ¶
type ColumnInfo struct {
Index int `json:"index"`
GoFieldName string `json:"go_field_name"`
GoFieldType string `json:"go_field_type"`
JSONFieldName string `json:"json_field_name"`
ProtobufFieldName string `json:"protobuf_field_name"`
ProtobufType string `json:"protobuf_field_type"`
ProtobufPos int `json:"protobuf_field_pos"`
Comment string `json:"comment"`
Notes string `json:"notes"`
Name string `json:"name"`
Nullable bool `json:"is_nullable"`
DatabaseTypeName string `json:"database_type_name"`
DatabaseTypePretty string `json:"database_type_pretty"`
IsPrimaryKey bool `json:"is_primary_key"`
IsAutoIncrement bool `json:"is_auto_increment"`
IsArray bool `json:"is_array"`
ColumnType string `json:"column_type"`
ColumnLength int64 `json:"column_length"`
DefaultValue string `json:"default_value"`
}
ColumnInfo describes a column in the database table
type Devices ¶
type Devices struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Name sql.NullString `gorm:"column:name;type:varchar;size:30;"`
//[ 3] ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddress sql.NullString `gorm:"column:ip_address;type:varchar;size:30;"`
//[ 4] device_role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceRole sql.NullString `gorm:"column:device_role;type:varchar;size:30;"`
//[ 5] local_as varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LocalAs sql.NullString `gorm:"column:local_as;type:varchar;size:30;"`
//[ 6] device_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceType sql.NullString `gorm:"column:device_type;type:varchar;size:30;"`
//[ 7] host_name varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
HostName sql.NullString `gorm:"column:host_name;type:varchar;size:100;"`
//[ 8] asn varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Asn sql.NullString `gorm:"column:asn;type:varchar;size:100;"`
//[ 9] vtep_loopback_id varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
VtepLoopbackID sql.NullString `gorm:"column:vtep_loopback_id;type:varchar;size:100;"`
//[10] pod varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Pod sql.NullString `gorm:"column:pod;type:varchar;size:30;"`
//[11] mct_role int null: true primary: false isArray: false auto: false col: int len: -1 default: []
MctRole sql.NullInt64 `gorm:"column:mct_role;type:int;"`
//[12] provisioning_status int null: true primary: false isArray: false auto: false col: int len: -1 default: []
ProvisioningStatus sql.NullInt64 `gorm:"column:provisioning_status;type:int;"`
//[13] device_status int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceStatus sql.NullInt64 `gorm:"column:device_status;type:int;"`
//[14] config_gen_reason bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
ConfigGenReason sql.NullInt64 `gorm:"column:config_gen_reason;type:bigint;"`
//[15] loopback_id varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
LoopbackID sql.NullString `gorm:"column:loopback_id;type:varchar;size:100;"`
//[16] model varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Model sql.NullString `gorm:"column:model;type:varchar;size:100;"`
//[17] firmware_version varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
FirmwareVersion sql.NullString `gorm:"column:firmware_version;type:varchar;size:100;"`
//[18] rack varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Rack sql.NullString `gorm:"column:rack;type:varchar;size:30;"`
//[19] is_admin_state_up tinyint null: false primary: false isArray: false auto: false col: tinyint len: -1 default: [1]
IsAdminStateUp int32 `gorm:"column:is_admin_state_up;type:tinyint;default:1;"`
}
Devices struct is a row record of the devices table in the myapp database
func (*Devices) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*Devices) Prepare ¶
func (d *Devices) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
type EventHistorys ¶
type EventHistorys struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] execution_uuid varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
ExecutionUUID sql.NullString `gorm:"column:execution_uuid;type:varchar;size:255;"`
//[ 2] date varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Date sql.NullString `gorm:"column:date;type:varchar;size:100;"`
//[ 3] service varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
Service sql.NullString `gorm:"column:service;type:varchar;size:255;"`
//[ 4] event varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
Event sql.NullString `gorm:"column:event;type:varchar;size:255;"`
//[ 5] device varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
Device sql.NullString `gorm:"column:device;type:varchar;size:255;"`
//[ 6] message_type varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
MessageType sql.NullString `gorm:"column:message_type;type:varchar;size:255;"`
//[ 7] message_object text(65535) null: true primary: false isArray: false auto: false col: text len: 65535 default: []
MessageObject sql.NullString `gorm:"column:message_object;type:text;size:65535;"`
//[ 8] message text(65535) null: true primary: false isArray: false auto: false col: text len: 65535 default: []
Message sql.NullString `gorm:"column:message;type:text;size:65535;"`
//[ 9] error_text text(65535) null: true primary: false isArray: false auto: false col: text len: 65535 default: []
ErrorText sql.NullString `gorm:"column:error_text;type:text;size:65535;"`
//[10] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: [CURRENT_TIMESTAMP]
CreatedAt time.Time `gorm:"column:created_at;type:timestamp;default:CURRENT_TIMESTAMP;"`
}
EventHistorys struct is a row record of the event_historys table in the myapp database
func (*EventHistorys) BeforeSave ¶
func (e *EventHistorys) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*EventHistorys) Prepare ¶
func (e *EventHistorys) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*EventHistorys) TableInfo ¶
func (e *EventHistorys) TableInfo() *TableInfo
TableInfo return table meta data
func (*EventHistorys) TableName ¶
func (e *EventHistorys) TableName() string
TableName sets the insert table name for this struct type
func (*EventHistorys) Validate ¶
func (e *EventHistorys) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type Evpns ¶
type Evpns struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] fabric_name varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
FabricName string `gorm:"column:fabric_name;type:varchar;size:30;"`
//[ 3] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 4] device_ip varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceIP string `gorm:"column:device_ip;type:varchar;size:30;"`
//[ 5] sw_evpn_name varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
SwEvpnName string `gorm:"column:sw_evpn_name;type:varchar;size:30;"`
//[ 6] mac_aging_timeout varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
MacAgingTimeout string `gorm:"column:mac_aging_timeout;type:varchar;size:30;"`
//[ 7] mac_move_limit varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
MacMoveLimit string `gorm:"column:mac_move_limit;type:varchar;size:30;"`
//[ 8] mac_aging_conversational_timeout varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
MacAgingConversationalTimeout string `gorm:"column:mac_aging_conversational_timeout;type:varchar;size:30;"`
//[ 9] arp_agingtimeout varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
ArpAgingtimeout string `gorm:"column:arp_agingtimeout;type:varchar;size:30;"`
//[10] duplicate_mac_timer varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
DuplicateMacTimer string `gorm:"column:duplicate_mac_timer;type:varchar;size:30;"`
//[11] duplicate_mac_timer_max_count varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
DuplicateMacTimerMaxCount string `gorm:"column:duplicate_mac_timer_max_count;type:varchar;size:30;"`
//[12] config_type varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType string `gorm:"column:config_type;type:varchar;size:30;"`
}
Evpns struct is a row record of the evpns table in the myapp database
func (*Evpns) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*Evpns) Prepare ¶
func (e *Evpns) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
type ExecutionLogs ¶
type ExecutionLogs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] uuid varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
UUID sql.NullString `gorm:"column:uuid;type:varchar;size:255;"`
//[ 2] command varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
Command sql.NullString `gorm:"column:command;type:varchar;size:255;"`
//[ 3] params text(65535) null: true primary: false isArray: false auto: false col: text len: 65535 default: []
Params sql.NullString `gorm:"column:params;type:text;size:65535;"`
//[ 4] status varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Status sql.NullString `gorm:"column:status;type:varchar;size:100;"`
//[ 5] start_time varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
StartTime sql.NullString `gorm:"column:start_time;type:varchar;size:100;"`
//[ 6] end_time varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
EndTime sql.NullString `gorm:"column:end_time;type:varchar;size:100;"`
//[ 7] duration varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Duration sql.NullString `gorm:"column:duration;type:varchar;size:100;"`
//[ 8] created_at timestamp null: false primary: false isArray: false auto: false col: timestamp len: -1 default: []
CreatedAt time.Time `gorm:"column:created_at;type:timestamp;"`
//[ 9] user_name varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
UserName sql.NullString `gorm:"column:user_name;type:varchar;size:100;"`
}
ExecutionLogs struct is a row record of the execution_logs table in the myapp database
func (*ExecutionLogs) BeforeSave ¶
func (e *ExecutionLogs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*ExecutionLogs) Prepare ¶
func (e *ExecutionLogs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*ExecutionLogs) TableInfo ¶
func (e *ExecutionLogs) TableInfo() *TableInfo
TableInfo return table meta data
func (*ExecutionLogs) TableName ¶
func (e *ExecutionLogs) TableName() string
TableName sets the insert table name for this struct type
func (*ExecutionLogs) Validate ¶
func (e *ExecutionLogs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type FabricErrors ¶
type FabricErrors struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] fabric_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
FabricName sql.NullString `gorm:"column:fabric_name;type:varchar;size:30;"`
//[ 3] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 4] device_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceIP sql.NullString `gorm:"column:device_ip;type:varchar;size:30;"`
//[ 5] device_role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceRole sql.NullString `gorm:"column:device_role;type:varchar;size:30;"`
//[ 6] error_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ErrorType sql.NullString `gorm:"column:error_type;type:varchar;size:30;"`
//[ 7] error_reason text(65535) null: true primary: false isArray: false auto: false col: text len: 65535 default: []
ErrorReason sql.NullString `gorm:"column:error_reason;type:text;size:65535;"`
}
FabricErrors struct is a row record of the fabric_errors table in the myapp database
func (*FabricErrors) BeforeSave ¶
func (f *FabricErrors) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*FabricErrors) Prepare ¶
func (f *FabricErrors) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*FabricErrors) TableInfo ¶
func (f *FabricErrors) TableInfo() *TableInfo
TableInfo return table meta data
func (*FabricErrors) TableName ¶
func (f *FabricErrors) TableName() string
TableName sets the insert table name for this struct type
func (*FabricErrors) Validate ¶
func (f *FabricErrors) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type FabricProperties ¶
type FabricProperties struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] p2_p_link_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
P2PLinkRange sql.NullString `gorm:"column:p2_p_link_range;type:varchar;size:100;"`
//[ 3] p2_p_ip_type varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
P2PIPType sql.NullString `gorm:"column:p2_p_ip_type;type:varchar;size:100;"`
//[ 4] loop_back_ip_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
LoopBackIPRange sql.NullString `gorm:"column:loop_back_ip_range;type:varchar;size:100;"`
//[ 5] loop_back_port_number varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
LoopBackPortNumber sql.NullString `gorm:"column:loop_back_port_number;type:varchar;size:100;"`
//[ 6] super_spine_asn_block varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
SuperSpineAsnBlock sql.NullString `gorm:"column:super_spine_asn_block;type:varchar;size:100;"`
//[ 7] spine_asn_block varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
SpineAsnBlock sql.NullString `gorm:"column:spine_asn_block;type:varchar;size:100;"`
//[ 8] leaf_asn_block varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
LeafAsnBlock sql.NullString `gorm:"column:leaf_asn_block;type:varchar;size:100;"`
//[ 9] border_leaf_asn_block varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
BorderLeafAsnBlock sql.NullString `gorm:"column:border_leaf_asn_block;type:varchar;size:100;"`
//[10] vtep_loop_back_port_number varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
VtepLoopBackPortNumber sql.NullString `gorm:"column:vtep_loop_back_port_number;type:varchar;size:100;"`
//[11] any_cast_mac varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
AnyCastMac sql.NullString `gorm:"column:any_cast_mac;type:varchar;size:100;"`
//[12] ip_v6_any_cast_mac varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
IPV6AnyCastMac sql.NullString `gorm:"column:ip_v6_any_cast_mac;type:varchar;size:100;"`
//[13] configure_overlay_gateway varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
ConfigureOverlayGateway sql.NullString `gorm:"column:configure_overlay_gateway;type:varchar;size:10;"`
//[14] vni_auto_map varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
VniAutoMap sql.NullString `gorm:"column:vni_auto_map;type:varchar;size:10;"`
//[15] bfd_enable varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
BfdEnable sql.NullString `gorm:"column:bfd_enable;type:varchar;size:10;"`
//[16] bfd_tx varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
BfdTx sql.NullString `gorm:"column:bfd_tx;type:varchar;size:10;"`
//[17] bfd_rx varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
BfdRx sql.NullString `gorm:"column:bfd_rx;type:varchar;size:10;"`
//[18] bfd_multiplier varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
BfdMultiplier sql.NullString `gorm:"column:bfd_multiplier;type:varchar;size:10;"`
//[19] bgp_multi_hop varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
BgpMultiHop sql.NullString `gorm:"column:bgp_multi_hop;type:varchar;size:10;"`
//[20] max_paths varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
MaxPaths sql.NullString `gorm:"column:max_paths;type:varchar;size:10;"`
//[21] allow_as_in varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
AllowAsIn sql.NullString `gorm:"column:allow_as_in;type:varchar;size:10;"`
//[22] mtu varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
Mtu sql.NullString `gorm:"column:mtu;type:varchar;size:10;"`
//[23] ip_mtu varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
IPMtu sql.NullString `gorm:"column:ip_mtu;type:varchar;size:10;"`
//[24] leaf_peer_group varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LeafPeerGroup sql.NullString `gorm:"column:leaf_peer_group;type:varchar;size:30;"`
//[25] spine_peer_group varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
SpinePeerGroup sql.NullString `gorm:"column:spine_peer_group;type:varchar;size:30;"`
//[26] super_spine_peer_group varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
SuperSpinePeerGroup sql.NullString `gorm:"column:super_spine_peer_group;type:varchar;size:30;"`
//[27] arp_aging_timeout varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
ArpAgingTimeout sql.NullString `gorm:"column:arp_aging_timeout;type:varchar;size:10;"`
//[28] mac_aging_timeout varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
MacAgingTimeout sql.NullString `gorm:"column:mac_aging_timeout;type:varchar;size:10;"`
//[29] mac_aging_conversational_timeout varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
MacAgingConversationalTimeout sql.NullString `gorm:"column:mac_aging_conversational_timeout;type:varchar;size:10;"`
//[30] mac_move_limit varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
MacMoveLimit sql.NullString `gorm:"column:mac_move_limit;type:varchar;size:10;"`
//[31] duplicate_mac_timer varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
DuplicateMacTimer sql.NullString `gorm:"column:duplicate_mac_timer;type:varchar;size:10;"`
//[32] duplicate_max_timer_max_count varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
DuplicateMaxTimerMaxCount sql.NullString `gorm:"column:duplicate_max_timer_max_count;type:varchar;size:10;"`
//[33] mct_link_ip_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
MctLinkIPRange sql.NullString `gorm:"column:mct_link_ip_range;type:varchar;size:100;"`
//[34] control_vlan varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
ControlVlan sql.NullString `gorm:"column:control_vlan;type:varchar;size:10;"`
//[35] control_ve varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
ControlVe sql.NullString `gorm:"column:control_ve;type:varchar;size:10;"`
//[36] mct_port_channel varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
MctPortChannel sql.NullString `gorm:"column:mct_port_channel;type:varchar;size:100;"`
//[37] rack_l3_back_up_ip_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
RackL3BackUpIPRange sql.NullString `gorm:"column:rack_l3_back_up_ip_range;type:varchar;size:100;"`
//[38] rack_asn_block varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
RackAsnBlock sql.NullString `gorm:"column:rack_asn_block;type:varchar;size:100;"`
//[39] rack_underlay_ebgp_peer_group varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RackUnderlayEbgpPeerGroup sql.NullString `gorm:"column:rack_underlay_ebgp_peer_group;type:varchar;size:30;"`
//[40] rack_overlay_ebgp_peer_group varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RackOverlayEbgpPeerGroup sql.NullString `gorm:"column:rack_overlay_ebgp_peer_group;type:varchar;size:30;"`
//[41] rack_l3_back_up_port varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
RackL3BackUpPort sql.NullString `gorm:"column:rack_l3_back_up_port;type:varchar;size:100;"`
//[42] rack_mct_ports varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
RackMctPorts sql.NullString `gorm:"column:rack_mct_ports;type:varchar;size:100;"`
//[43] rack_ld_l3_back_up_port varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
RackLdL3BackUpPort sql.NullString `gorm:"column:rack_ld_l3_back_up_port;type:varchar;size:100;"`
//[44] rack_ld_mct_ports varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
RackLdMctPorts sql.NullString `gorm:"column:rack_ld_mct_ports;type:varchar;size:100;"`
//[45] max_number_of_racks_in_fabric varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
MaxNumberOfRacksInFabric sql.NullString `gorm:"column:max_number_of_racks_in_fabric;type:varchar;size:10;"`
//[46] number_of_devices_in_rack varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
NumberOfDevicesInRack sql.NullString `gorm:"column:number_of_devices_in_rack;type:varchar;size:10;"`
//[47] backup_routing_enable varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
BackupRoutingEnable sql.NullString `gorm:"column:backup_routing_enable;type:varchar;size:10;"`
//[48] backup_routing_ipv4_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
BackupRoutingIpv4Range sql.NullString `gorm:"column:backup_routing_ipv4_range;type:varchar;size:100;"`
//[49] backup_routing_ipv6_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
BackupRoutingIpv6Range sql.NullString `gorm:"column:backup_routing_ipv6_range;type:varchar;size:100;"`
//[50] lacp_timeout varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
LacpTimeout sql.NullString `gorm:"column:lacp_timeout;type:varchar;size:10;"`
//[51] optimized_replication_enable varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: [No]
OptimizedReplicationEnable sql.NullString `gorm:"column:optimized_replication_enable;type:varchar;size:10;default:No;"`
//[52] mdtgroup_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: [239.0.0.0/8]
MdtgroupRange sql.NullString `gorm:"column:mdtgroup_range;type:varchar;size:100;default:239.0.0.0/8;"`
//[53] default_mdtgroup varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: [239.1.1.1]
DefaultMdtgroup sql.NullString `gorm:"column:default_mdtgroup;type:varchar;size:100;default:239.1.1.1;"`
}
FabricProperties struct is a row record of the fabric_properties table in the myapp database
func (*FabricProperties) BeforeSave ¶
func (f *FabricProperties) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*FabricProperties) Prepare ¶
func (f *FabricProperties) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*FabricProperties) TableInfo ¶
func (f *FabricProperties) TableInfo() *TableInfo
TableInfo return table meta data
func (*FabricProperties) TableName ¶
func (f *FabricProperties) TableName() string
TableName sets the insert table name for this struct type
func (*FabricProperties) Validate ¶
func (f *FabricProperties) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type Fabrics ¶
type Fabrics struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Name sql.NullString `gorm:"column:name;type:varchar;size:30;"`
//[ 2] description varchar(255) null: true primary: false isArray: false auto: false col: varchar len: 255 default: []
Description sql.NullString `gorm:"column:description;type:varchar;size:255;"`
//[ 3] fabric_type varchar(10) null: true primary: false isArray: false auto: false col: varchar len: 10 default: []
FabricType sql.NullString `gorm:"column:fabric_type;type:varchar;size:10;"`
//[ 4] stage int null: true primary: false isArray: false auto: false col: int len: -1 default: []
Stage sql.NullInt64 `gorm:"column:stage;type:int;"`
}
Fabrics struct is a row record of the fabrics table in the myapp database
func (*Fabrics) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*Fabrics) Prepare ¶
func (f *Fabrics) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
type IPAllocationPools ¶
type IPAllocationPools struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddress sql.NullString `gorm:"column:ip_address;type:varchar;size:30;"`
//[ 3] ip_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPType sql.NullString `gorm:"column:ip_type;type:varchar;size:30;"`
}
IPAllocationPools struct is a row record of the ip_allocation_pools table in the myapp database
func (*IPAllocationPools) BeforeSave ¶
func (i *IPAllocationPools) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*IPAllocationPools) Prepare ¶
func (i *IPAllocationPools) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*IPAllocationPools) TableInfo ¶
func (i *IPAllocationPools) TableInfo() *TableInfo
TableInfo return table meta data
func (*IPAllocationPools) TableName ¶
func (i *IPAllocationPools) TableName() string
TableName sets the insert table name for this struct type
func (*IPAllocationPools) Validate ¶
func (i *IPAllocationPools) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type IPPairAllocationPools ¶
type IPPairAllocationPools struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] ip_address_one varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddressOne sql.NullString `gorm:"column:ip_address_one;type:varchar;size:30;"`
//[ 3] ip_address_two varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddressTwo sql.NullString `gorm:"column:ip_address_two;type:varchar;size:30;"`
//[ 4] ip_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPType sql.NullString `gorm:"column:ip_type;type:varchar;size:30;"`
}
IPPairAllocationPools struct is a row record of the ip_pair_allocation_pools table in the myapp database
func (*IPPairAllocationPools) BeforeSave ¶
func (i *IPPairAllocationPools) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*IPPairAllocationPools) Prepare ¶
func (i *IPPairAllocationPools) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*IPPairAllocationPools) TableInfo ¶
func (i *IPPairAllocationPools) TableInfo() *TableInfo
TableInfo return table meta data
func (*IPPairAllocationPools) TableName ¶
func (i *IPPairAllocationPools) TableName() string
TableName sets the insert table name for this struct type
func (*IPPairAllocationPools) Validate ¶
func (i *IPPairAllocationPools) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type IPPrefixLists ¶
type IPPrefixLists struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: false primary: false isArray: false auto: false col: int len: -1 default: []
FabricID int32 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: false primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID int32 `gorm:"column:device_id;type:int;"`
//[ 3] name varchar(64) null: false primary: false isArray: false auto: false col: varchar len: 64 default: []
Name string `gorm:"column:name;type:varchar;size:64;"`
//[ 4] seq int null: false primary: false isArray: false auto: false col: int len: -1 default: []
Seq int32 `gorm:"column:seq;type:int;"`
//[ 5] afi varchar(20) null: false primary: false isArray: false auto: false col: varchar len: 20 default: [ipv4]
Afi string `gorm:"column:afi;type:varchar;size:20;default:ipv4;"`
//[ 6] action varchar(20) null: true primary: false isArray: false auto: false col: varchar len: 20 default: []
Action sql.NullString `gorm:"column:action;type:varchar;size:20;"`
//[ 7] ip_prefix varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
IPPrefix sql.NullString `gorm:"column:ip_prefix;type:varchar;size:100;"`
//[ 8] prefix_len_ge int null: true primary: false isArray: false auto: false col: int len: -1 default: []
PrefixLenGe sql.NullInt64 `gorm:"column:prefix_len_ge;type:int;"`
//[ 9] prefix_len_le int null: true primary: false isArray: false auto: false col: int len: -1 default: []
PrefixLenLe sql.NullInt64 `gorm:"column:prefix_len_le;type:int;"`
//[10] config_type text(65535) null: false primary: false isArray: false auto: false col: text len: 65535 default: []
ConfigType string `gorm:"column:config_type;type:text;size:65535;"`
}
IPPrefixLists struct is a row record of the ip_prefix_lists table in the myapp database
func (*IPPrefixLists) BeforeSave ¶
func (i *IPPrefixLists) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*IPPrefixLists) Prepare ¶
func (i *IPPrefixLists) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*IPPrefixLists) TableInfo ¶
func (i *IPPrefixLists) TableInfo() *TableInfo
TableInfo return table meta data
func (*IPPrefixLists) TableName ¶
func (i *IPPrefixLists) TableName() string
TableName sets the insert table name for this struct type
func (*IPPrefixLists) Validate ¶
func (i *IPPrefixLists) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type InterfaceSwitchConfigs ¶
type InterfaceSwitchConfigs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceID sql.NullInt64 `gorm:"column:interface_id;type:int;"`
//[ 4] int_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IntType sql.NullString `gorm:"column:int_type;type:varchar;size:30;"`
//[ 5] int_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IntName sql.NullString `gorm:"column:int_name;type:varchar;size:30;"`
//[ 6] donor_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DonorType sql.NullString `gorm:"column:donor_type;type:varchar;size:30;"`
//[ 7] donor_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DonorName sql.NullString `gorm:"column:donor_name;type:varchar;size:30;"`
//[ 8] ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddress sql.NullString `gorm:"column:ip_address;type:varchar;size:30;"`
//[ 9] ip_pim_sparse tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: [0]
IPPimSparse sql.NullInt64 `gorm:"column:ip_pim_sparse;type:tinyint;default:0;"`
//[10] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
//[11] description varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Description sql.NullString `gorm:"column:description;type:varchar;size:100;"`
}
InterfaceSwitchConfigs struct is a row record of the interface_switch_configs table in the myapp database
func (*InterfaceSwitchConfigs) BeforeSave ¶
func (i *InterfaceSwitchConfigs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*InterfaceSwitchConfigs) Prepare ¶
func (i *InterfaceSwitchConfigs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*InterfaceSwitchConfigs) TableInfo ¶
func (i *InterfaceSwitchConfigs) TableInfo() *TableInfo
TableInfo return table meta data
func (*InterfaceSwitchConfigs) TableName ¶
func (i *InterfaceSwitchConfigs) TableName() string
TableName sets the insert table name for this struct type
func (*InterfaceSwitchConfigs) Validate ¶
func (i *InterfaceSwitchConfigs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type LldpNeighbors ¶
type LldpNeighbors struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_one_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceOneID sql.NullInt64 `gorm:"column:device_one_id;type:int;"`
//[ 3] device_two_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceTwoID sql.NullInt64 `gorm:"column:device_two_id;type:int;"`
//[ 4] interface_one_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceOneID sql.NullInt64 `gorm:"column:interface_one_id;type:int;"`
//[ 5] interface_two_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceTwoID sql.NullInt64 `gorm:"column:interface_two_id;type:int;"`
//[ 6] inventory_interface_one_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InventoryInterfaceOneID sql.NullInt64 `gorm:"column:inventory_interface_one_id;type:int;"`
//[ 7] inventory_interface_two_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InventoryInterfaceTwoID sql.NullInt64 `gorm:"column:inventory_interface_two_id;type:int;"`
//[ 8] device_one_role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceOneRole sql.NullString `gorm:"column:device_one_role;type:varchar;size:30;"`
//[ 9] device_two_role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceTwoRole sql.NullString `gorm:"column:device_two_role;type:varchar;size:30;"`
//[10] interface_one_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceOneName sql.NullString `gorm:"column:interface_one_name;type:varchar;size:30;"`
//[11] interface_one_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceOneType sql.NullString `gorm:"column:interface_one_type;type:varchar;size:30;"`
//[12] interface_one_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceOneIP sql.NullString `gorm:"column:interface_one_ip;type:varchar;size:30;"`
//[13] interface_two_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceTwoName sql.NullString `gorm:"column:interface_two_name;type:varchar;size:30;"`
//[14] interface_two_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceTwoType sql.NullString `gorm:"column:interface_two_type;type:varchar;size:30;"`
//[15] interface_one_speed varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceOneSpeed sql.NullString `gorm:"column:interface_one_speed;type:varchar;size:30;"`
//[16] interface_two_speed varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceTwoSpeed sql.NullString `gorm:"column:interface_two_speed;type:varchar;size:30;"`
//[17] interface_two_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceTwoIP sql.NullString `gorm:"column:interface_two_ip;type:varchar;size:30;"`
//[18] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
LldpNeighbors struct is a row record of the lldp_neighbors table in the myapp database
func (*LldpNeighbors) BeforeSave ¶
func (l *LldpNeighbors) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*LldpNeighbors) Prepare ¶
func (l *LldpNeighbors) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*LldpNeighbors) TableInfo ¶
func (l *LldpNeighbors) TableInfo() *TableInfo
TableInfo return table meta data
func (*LldpNeighbors) TableName ¶
func (l *LldpNeighbors) TableName() string
TableName sets the insert table name for this struct type
func (*LldpNeighbors) Validate ¶
func (l *LldpNeighbors) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type MctClusterConfigs ¶
type MctClusterConfigs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] cluster_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
ClusterID sql.NullInt64 `gorm:"column:cluster_id;type:int;"`
//[ 2] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 3] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 4] mct_neighbor_device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
MctNeighborDeviceID sql.NullInt64 `gorm:"column:mct_neighbor_device_id;type:int;"`
//[ 5] device_one_mgmt_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceOneMgmtIP sql.NullString `gorm:"column:device_one_mgmt_ip;type:varchar;size:30;"`
//[ 6] device_two_mgmt_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceTwoMgmtIP sql.NullString `gorm:"column:device_two_mgmt_ip;type:varchar;size:30;"`
//[ 7] peer_interface_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
PeerInterfaceName sql.NullString `gorm:"column:peer_interface_name;type:varchar;size:30;"`
//[ 8] peer_interfacetype varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
PeerInterfacetype sql.NullString `gorm:"column:peer_interfacetype;type:varchar;size:30;"`
//[ 9] peer_interface_speed varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
PeerInterfaceSpeed sql.NullString `gorm:"column:peer_interface_speed;type:varchar;size:30;"`
//[10] peer_interface_two_speed varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
PeerInterfaceTwoSpeed sql.NullString `gorm:"column:peer_interface_two_speed;type:varchar;size:30;"`
//[11] peer_one_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
PeerOneIP sql.NullString `gorm:"column:peer_one_ip;type:varchar;size:30;"`
//[12] peer_two_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
PeerTwoIP sql.NullString `gorm:"column:peer_two_ip;type:varchar;size:30;"`
//[13] control_vlan varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ControlVlan sql.NullString `gorm:"column:control_vlan;type:varchar;size:30;"`
//[14] control_ve varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ControlVe sql.NullString `gorm:"column:control_ve;type:varchar;size:30;"`
//[15] ve_interface_one_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
VeInterfaceOneID sql.NullInt64 `gorm:"column:ve_interface_one_id;type:int;"`
//[16] ve_interface_two_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
VeInterfaceTwoID sql.NullInt64 `gorm:"column:ve_interface_two_id;type:int;"`
//[17] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
//[18] local_node_id varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LocalNodeID sql.NullString `gorm:"column:local_node_id;type:varchar;size:30;"`
//[19] remote_node_id varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RemoteNodeID sql.NullString `gorm:"column:remote_node_id;type:varchar;size:30;"`
//[20] updated_attributes bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
UpdatedAttributes sql.NullInt64 `gorm:"column:updated_attributes;type:bigint;"`
//[21] sw_cluster_name text(65535) null: false primary: false isArray: false auto: false col: text len: 65535 default: []
SwClusterName string `gorm:"column:sw_cluster_name;type:text;size:65535;"`
}
MctClusterConfigs struct is a row record of the mct_cluster_configs table in the myapp database
func (*MctClusterConfigs) BeforeSave ¶
func (m *MctClusterConfigs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*MctClusterConfigs) Prepare ¶
func (m *MctClusterConfigs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*MctClusterConfigs) TableInfo ¶
func (m *MctClusterConfigs) TableInfo() *TableInfo
TableInfo return table meta data
func (*MctClusterConfigs) TableName ¶
func (m *MctClusterConfigs) TableName() string
TableName sets the insert table name for this struct type
func (*MctClusterConfigs) Validate ¶
func (m *MctClusterConfigs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type MctClusterDetails ¶
type MctClusterDetails struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] node_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
NodeID sql.NullInt64 `gorm:"column:node_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] principal_switch_mac varchar(64) null: true primary: false isArray: false auto: false col: varchar len: 64 default: []
PrincipalSwitchMac sql.NullString `gorm:"column:principal_switch_mac;type:varchar;size:64;"`
//[ 4] node_internal_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NodeInternalIP sql.NullString `gorm:"column:node_internal_ip;type:varchar;size:30;"`
//[ 5] node_public_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NodePublicIP sql.NullString `gorm:"column:node_public_ip;type:varchar;size:30;"`
//[ 6] node_principal varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NodePrincipal sql.NullString `gorm:"column:node_principal;type:varchar;size:30;"`
//[ 7] node_is_local varchar(20) null: true primary: false isArray: false auto: false col: varchar len: 20 default: []
NodeIsLocal sql.NullString `gorm:"column:node_is_local;type:varchar;size:20;"`
//[ 8] serial_nnum varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
SerialNnum sql.NullString `gorm:"column:serial_nnum;type:varchar;size:30;"`
//[ 9] node_condition varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NodeCondition sql.NullString `gorm:"column:node_condition;type:varchar;size:30;"`
//[10] node_status varchar(60) null: true primary: false isArray: false auto: false col: varchar len: 60 default: []
NodeStatus sql.NullString `gorm:"column:node_status;type:varchar;size:60;"`
//[11] firmware_version varchar(128) null: true primary: false isArray: false auto: false col: varchar len: 128 default: []
FirmwareVersion sql.NullString `gorm:"column:firmware_version;type:varchar;size:128;"`
//[12] node_mac varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NodeMac sql.NullString `gorm:"column:node_mac;type:varchar;size:30;"`
//[13] node_switch_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NodeSwitchType sql.NullString `gorm:"column:node_switch_type;type:varchar;size:30;"`
}
MctClusterDetails struct is a row record of the mct_cluster_details table in the myapp database
func (*MctClusterDetails) BeforeSave ¶
func (m *MctClusterDetails) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*MctClusterDetails) Prepare ¶
func (m *MctClusterDetails) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*MctClusterDetails) TableInfo ¶
func (m *MctClusterDetails) TableInfo() *TableInfo
TableInfo return table meta data
func (*MctClusterDetails) TableName ¶
func (m *MctClusterDetails) TableName() string
TableName sets the insert table name for this struct type
func (*MctClusterDetails) Validate ¶
func (m *MctClusterDetails) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type Model ¶
type Model interface {
TableName() string
BeforeSave() error
Prepare()
Validate(action Action) error
TableInfo() *TableInfo
}
Model interface methods for database structs generated
type OverlayGateways ¶
type OverlayGateways struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] fabric_name varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
FabricName string `gorm:"column:fabric_name;type:varchar;size:30;"`
//[ 3] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 4] device_ip varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceIP string `gorm:"column:device_ip;type:varchar;size:30;"`
//[ 5] sw_overlay_gw_name varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
SwOverlayGwName string `gorm:"column:sw_overlay_gw_name;type:varchar;size:30;"`
//[ 6] gw_type varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
GwType string `gorm:"column:gw_type;type:varchar;size:30;"`
//[ 7] vtep_loopback_port_number varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
VtepLoopbackPortNumber string `gorm:"column:vtep_loopback_port_number;type:varchar;size:30;"`
//[ 8] map_vni_auto varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
MapVniAuto string `gorm:"column:map_vni_auto;type:varchar;size:30;"`
//[ 9] optimized_replication tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: [0]
OptimizedReplication sql.NullInt64 `gorm:"column:optimized_replication;type:tinyint;default:0;"`
//[10] underlay_mdt_default_group varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
UnderlayMdtDefaultGroup sql.NullString `gorm:"column:underlay_mdt_default_group;type:varchar;size:100;"`
//[11] activate varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
Activate string `gorm:"column:activate;type:varchar;size:30;"`
//[12] config_type varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType string `gorm:"column:config_type;type:varchar;size:30;"`
}
OverlayGateways struct is a row record of the overlay_gateways table in the myapp database
func (*OverlayGateways) BeforeSave ¶
func (o *OverlayGateways) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*OverlayGateways) Prepare ¶
func (o *OverlayGateways) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*OverlayGateways) TableInfo ¶
func (o *OverlayGateways) TableInfo() *TableInfo
TableInfo return table meta data
func (*OverlayGateways) TableName ¶
func (o *OverlayGateways) TableName() string
TableName sets the insert table name for this struct type
func (*OverlayGateways) Validate ¶
func (o *OverlayGateways) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type PeerGroups ¶
type PeerGroups struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] peer_group_name varchar(64) null: false primary: false isArray: false auto: false col: varchar len: 64 default: []
PeerGroupName string `gorm:"column:peer_group_name;type:varchar;size:64;"`
//[ 4] description varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
Description sql.NullString `gorm:"column:description;type:varchar;size:100;"`
//[ 5] bfd_enable tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
BfdEnable sql.NullInt64 `gorm:"column:bfd_enable;type:tinyint;"`
//[ 6] remote_asn bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
RemoteAsn sql.NullInt64 `gorm:"column:remote_asn;type:bigint;"`
//[ 7] graceful_shut_timer int null: true primary: false isArray: false auto: false col: int len: -1 default: []
GracefulShutTimer sql.NullInt64 `gorm:"column:graceful_shut_timer;type:int;"`
//[ 8] config_type text(65535) null: false primary: false isArray: false auto: false col: text len: 65535 default: []
ConfigType string `gorm:"column:config_type;type:text;size:65535;"`
}
PeerGroups struct is a row record of the peer_groups table in the myapp database
func (*PeerGroups) BeforeSave ¶
func (p *PeerGroups) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*PeerGroups) Prepare ¶
func (p *PeerGroups) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*PeerGroups) TableInfo ¶
func (p *PeerGroups) TableInfo() *TableInfo
TableInfo return table meta data
func (*PeerGroups) TableName ¶
func (p *PeerGroups) TableName() string
TableName sets the insert table name for this struct type
func (*PeerGroups) Validate ¶
func (p *PeerGroups) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type PhysInterfaces ¶
type PhysInterfaces struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] inventory_interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InventoryInterfaceID sql.NullInt64 `gorm:"column:inventory_interface_id;type:int;"`
//[ 4] int_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IntType sql.NullString `gorm:"column:int_type;type:varchar;size:30;"`
//[ 5] int_name varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IntName sql.NullString `gorm:"column:int_name;type:varchar;size:30;"`
//[ 6] interface_speed varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
InterfaceSpeed sql.NullString `gorm:"column:interface_speed;type:varchar;size:30;"`
//[ 7] ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddress sql.NullString `gorm:"column:ip_address;type:varchar;size:30;"`
//[ 8] ip_pim_sparse tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
IPPimSparse sql.NullInt64 `gorm:"column:ip_pim_sparse;type:tinyint;"`
//[ 9] identifier varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Identifier sql.NullString `gorm:"column:identifier;type:varchar;size:30;"`
//[10] mac varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Mac sql.NullString `gorm:"column:mac;type:varchar;size:30;"`
//[11] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
PhysInterfaces struct is a row record of the phys_interfaces table in the myapp database
func (*PhysInterfaces) BeforeSave ¶
func (p *PhysInterfaces) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*PhysInterfaces) Prepare ¶
func (p *PhysInterfaces) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*PhysInterfaces) TableInfo ¶
func (p *PhysInterfaces) TableInfo() *TableInfo
TableInfo return table meta data
func (*PhysInterfaces) TableName ¶
func (p *PhysInterfaces) TableName() string
TableName sets the insert table name for this struct type
func (*PhysInterfaces) Validate ¶
func (p *PhysInterfaces) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type RemoteNeighborSwitchConfigs ¶
type RemoteNeighborSwitchConfigs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] remote_interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteInterfaceID sql.NullInt64 `gorm:"column:remote_interface_id;type:int;"`
//[ 4] remote_device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
RemoteDeviceID sql.NullInt64 `gorm:"column:remote_device_id;type:int;"`
//[ 5] peer_group_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
PeerGroupID sql.NullInt64 `gorm:"column:peer_group_id;type:int;"`
//[ 6] encapsulation_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
EncapsulationType sql.NullString `gorm:"column:encapsulation_type;type:varchar;size:30;"`
//[ 7] remote_ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RemoteIPAddress sql.NullString `gorm:"column:remote_ip_address;type:varchar;size:30;"`
//[ 8] type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Type sql.NullString `gorm:"column:type;type:varchar;size:30;"`
//[ 9] remote_as varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RemoteAs sql.NullString `gorm:"column:remote_as;type:varchar;size:30;"`
//[10] config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType sql.NullString `gorm:"column:config_type;type:varchar;size:30;"`
}
RemoteNeighborSwitchConfigs struct is a row record of the remote_neighbor_switch_configs table in the myapp database
func (*RemoteNeighborSwitchConfigs) BeforeSave ¶
func (r *RemoteNeighborSwitchConfigs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*RemoteNeighborSwitchConfigs) Prepare ¶
func (r *RemoteNeighborSwitchConfigs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*RemoteNeighborSwitchConfigs) TableInfo ¶
func (r *RemoteNeighborSwitchConfigs) TableInfo() *TableInfo
TableInfo return table meta data
func (*RemoteNeighborSwitchConfigs) TableName ¶
func (r *RemoteNeighborSwitchConfigs) TableName() string
TableName sets the insert table name for this struct type
func (*RemoteNeighborSwitchConfigs) Validate ¶
func (r *RemoteNeighborSwitchConfigs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type RouterBgps ¶
type RouterBgps struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] local_asn bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
LocalAsn sql.NullInt64 `gorm:"column:local_asn;type:bigint;"`
//[ 4] router_id varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RouterID sql.NullString `gorm:"column:router_id;type:varchar;size:30;"`
//[ 5] bfd_enable tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
BfdEnable sql.NullInt64 `gorm:"column:bfd_enable;type:tinyint;"`
//[ 6] bfd_tx int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdTx sql.NullInt64 `gorm:"column:bfd_tx;type:int;"`
//[ 7] bfd_rx int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdRx sql.NullInt64 `gorm:"column:bfd_rx;type:int;"`
//[ 8] bfd_multiplier int null: true primary: false isArray: false auto: false col: int len: -1 default: []
BfdMultiplier sql.NullInt64 `gorm:"column:bfd_multiplier;type:int;"`
//[ 9] network_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
NetworkAddress sql.NullString `gorm:"column:network_address;type:varchar;size:30;"`
//[10] redistribute_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
RedistributeType sql.NullString `gorm:"column:redistribute_type;type:varchar;size:30;"`
//[11] as4_enable tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
As4Enable sql.NullInt64 `gorm:"column:as4_enable;type:tinyint;"`
//[12] fast_fallover tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
FastFallover sql.NullInt64 `gorm:"column:fast_fallover;type:tinyint;"`
//[13] config_type varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType string `gorm:"column:config_type;type:varchar;size:30;"`
}
RouterBgps struct is a row record of the router_bgps table in the myapp database
func (*RouterBgps) BeforeSave ¶
func (r *RouterBgps) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*RouterBgps) Prepare ¶
func (r *RouterBgps) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*RouterBgps) TableInfo ¶
func (r *RouterBgps) TableInfo() *TableInfo
TableInfo return table meta data
func (*RouterBgps) TableName ¶
func (r *RouterBgps) TableName() string
TableName sets the insert table name for this struct type
func (*RouterBgps) Validate ¶
func (r *RouterBgps) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type RouterPims ¶
type RouterPims struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: false primary: false isArray: false auto: false col: int len: -1 default: []
FabricID int32 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: false primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID int32 `gorm:"column:device_id;type:int;"`
//[ 3] vrf text(65535) null: true primary: false isArray: false auto: false col: text len: 65535 default: []
Vrf sql.NullString `gorm:"column:vrf;type:text;size:65535;"`
//[ 4] ssm_enable tinyint null: true primary: false isArray: false auto: false col: tinyint len: -1 default: []
SsmEnable sql.NullInt64 `gorm:"column:ssm_enable;type:tinyint;"`
//[ 5] mdt_range varchar(100) null: true primary: false isArray: false auto: false col: varchar len: 100 default: []
MdtRange sql.NullString `gorm:"column:mdt_range;type:varchar;size:100;"`
//[ 6] config_type varchar(30) null: false primary: false isArray: false auto: false col: varchar len: 30 default: []
ConfigType string `gorm:"column:config_type;type:varchar;size:30;"`
}
RouterPims struct is a row record of the router_pims table in the myapp database
func (*RouterPims) BeforeSave ¶
func (r *RouterPims) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*RouterPims) Prepare ¶
func (r *RouterPims) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*RouterPims) TableInfo ¶
func (r *RouterPims) TableInfo() *TableInfo
TableInfo return table meta data
func (*RouterPims) TableName ¶
func (r *RouterPims) TableName() string
TableName sets the insert table name for this struct type
func (*RouterPims) Validate ¶
func (r *RouterPims) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type SwitchConfigs ¶
type SwitchConfigs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 2] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 3] device_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceIP sql.NullString `gorm:"column:device_ip;type:varchar;size:30;"`
//[ 4] local_as varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LocalAs sql.NullString `gorm:"column:local_as;type:varchar;size:30;"`
//[ 5] loopback_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LoopbackIP sql.NullString `gorm:"column:loopback_ip;type:varchar;size:30;"`
//[ 6] vtep_loopback_ip varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
VtepLoopbackIP sql.NullString `gorm:"column:vtep_loopback_ip;type:varchar;size:30;"`
//[ 7] role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Role sql.NullString `gorm:"column:role;type:varchar;size:30;"`
//[ 8] as_config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
AsConfigType sql.NullString `gorm:"column:as_config_type;type:varchar;size:30;"`
//[ 9] loopback_ip_config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LoopbackIPConfigType sql.NullString `gorm:"column:loopback_ip_config_type;type:varchar;size:30;"`
//[10] vtep_loopback_ip_config_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
VtepLoopbackIPConfigType sql.NullString `gorm:"column:vtep_loopback_ip_config_type;type:varchar;size:30;"`
//[11] vtep_loop_back_id varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
VtepLoopBackID sql.NullString `gorm:"column:vtep_loop_back_id;type:varchar;size:30;"`
//[12] loop_back_id varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
LoopBackID sql.NullString `gorm:"column:loop_back_id;type:varchar;size:30;"`
}
SwitchConfigs struct is a row record of the switch_configs table in the myapp database
func (*SwitchConfigs) BeforeSave ¶
func (s *SwitchConfigs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*SwitchConfigs) Prepare ¶
func (s *SwitchConfigs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*SwitchConfigs) TableInfo ¶
func (s *SwitchConfigs) TableInfo() *TableInfo
TableInfo return table meta data
func (*SwitchConfigs) TableName ¶
func (s *SwitchConfigs) TableName() string
TableName sets the insert table name for this struct type
func (*SwitchConfigs) Validate ¶
func (s *SwitchConfigs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type TableInfo ¶
type TableInfo struct {
Name string `json:"name"`
Columns []*ColumnInfo `json:"columns"`
}
TableInfo describes a table in the database
func GetTableInfo ¶
GetTableInfo retrieve TableInfo for a table
type UsedAsns ¶
type UsedAsns struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] asn bigint null: true primary: false isArray: false auto: false col: bigint len: -1 default: []
Asn sql.NullInt64 `gorm:"column:asn;type:bigint;"`
//[ 4] device_role varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
DeviceRole sql.NullString `gorm:"column:device_role;type:varchar;size:30;"`
//[ 5] pod varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
Pod sql.NullString `gorm:"column:pod;type:varchar;size:30;"`
}
UsedAsns struct is a row record of the used_asns table in the myapp database
func (*UsedAsns) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*UsedAsns) Prepare ¶
func (u *UsedAsns) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
type UsedIPPairs ¶
type UsedIPPairs struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_one_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceOneID sql.NullInt64 `gorm:"column:device_one_id;type:int;"`
//[ 3] device_two_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceTwoID sql.NullInt64 `gorm:"column:device_two_id;type:int;"`
//[ 4] ip_address_one varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddressOne sql.NullString `gorm:"column:ip_address_one;type:varchar;size:30;"`
//[ 5] ip_address_two varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddressTwo sql.NullString `gorm:"column:ip_address_two;type:varchar;size:30;"`
//[ 6] ip_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPType sql.NullString `gorm:"column:ip_type;type:varchar;size:30;"`
//[ 7] interface_one_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceOneID sql.NullInt64 `gorm:"column:interface_one_id;type:int;"`
//[ 8] interface_two_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceTwoID sql.NullInt64 `gorm:"column:interface_two_id;type:int;"`
}
UsedIPPairs struct is a row record of the used_ip_pairs table in the myapp database
func (*UsedIPPairs) BeforeSave ¶
func (u *UsedIPPairs) BeforeSave() error
BeforeSave invoked before saving, return an error if field is not populated.
func (*UsedIPPairs) Prepare ¶
func (u *UsedIPPairs) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
func (*UsedIPPairs) TableInfo ¶
func (u *UsedIPPairs) TableInfo() *TableInfo
TableInfo return table meta data
func (*UsedIPPairs) TableName ¶
func (u *UsedIPPairs) TableName() string
TableName sets the insert table name for this struct type
func (*UsedIPPairs) Validate ¶
func (u *UsedIPPairs) Validate(action Action) error
Validate invoked before performing action, return an error if field is not populated.
type UsedIps ¶
type UsedIps struct {
//[ 0] id int null: false primary: true isArray: false auto: true col: int len: -1 default: []
ID int32 `gorm:"primary_key;AUTO_INCREMENT;column:id;type:int;"`
//[ 1] fabric_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
FabricID sql.NullInt64 `gorm:"column:fabric_id;type:int;"`
//[ 2] device_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
DeviceID sql.NullInt64 `gorm:"column:device_id;type:int;"`
//[ 3] ip_address varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPAddress sql.NullString `gorm:"column:ip_address;type:varchar;size:30;"`
//[ 4] ip_type varchar(30) null: true primary: false isArray: false auto: false col: varchar len: 30 default: []
IPType sql.NullString `gorm:"column:ip_type;type:varchar;size:30;"`
//[ 5] interface_id int null: true primary: false isArray: false auto: false col: int len: -1 default: []
InterfaceID sql.NullInt64 `gorm:"column:interface_id;type:int;"`
}
UsedIps struct is a row record of the used_ips table in the myapp database
func (*UsedIps) BeforeSave ¶
BeforeSave invoked before saving, return an error if field is not populated.
func (*UsedIps) Prepare ¶
func (u *UsedIps) Prepare()
Prepare invoked before saving, can be used to populate fields etc.
Source Files
¶
- apps.go
- asn_allocation_pools.go
- bgp_af_evpn_neighbors.go
- bgp_af_ip_neighbors.go
- bgp_evpn_afs.go
- bgp_ip_afs.go
- cluster_members.go
- devices.go
- event_historys.go
- evpns.go
- execution_logs.go
- fabric_errors.go
- fabric_properties.go
- fabrics.go
- interface_switch_configs.go
- ip_allocation_pools.go
- ip_pair_allocation_pools.go
- ip_prefix_lists.go
- lldp_neighbors.go
- mct_cluster_configs.go
- mct_cluster_details.go
- model_base.go
- overlay_gateways.go
- peer_groups.go
- phys_interfaces.go
- remote_neighbor_switch_configs.go
- router_bgps.go
- router_pims.go
- switch_configs.go
- used_asns.go
- used_ip_pairs.go
- used_ips.go