TP Renames

This commit is contained in:
alin104n
2017-04-04 11:07:09 +03:00
parent 9853139976
commit c854d00868
9 changed files with 401 additions and 434 deletions

View File

@@ -71,17 +71,6 @@ func (pgnt *Paginator) PaginateStringSlice(in []string) (out []string) {
return
}
// Deprecated version of TPDestination
type V1TPDestination struct {
TPid string // Tariff plan id
ID string // Destination id
Prefixes []string // Prefixes attached to this destination
}
func (v1TPDst *V1TPDestination) AsTPDestination() *TPDestination {
return &TPDestination{TPid: v1TPDst.TPid, ID: v1TPDst.ID, Prefixes: v1TPDst.Prefixes}
}
// TPDestination represents one destination in storDB
type TPDestination struct {
TPid string // Tariff plan id
@@ -89,6 +78,10 @@ type TPDestination struct {
Prefixes []string // Prefixes attached to this destination
}
func (v1TPDst *TPDestination) AsTPDestination() *TPDestination {
return &TPDestination{TPid: v1TPDst.TPid, ID: v1TPDst.ID, Prefixes: v1TPDst.Prefixes}
}
// This file deals with tp_* data definition
type TPRate struct {