Documentation
¶
Index ¶
- Variables
- func CreateHttpRequest(oldObj, newObj []byte, isOldMalformed, isNewMalformed bool, ...) (*http.Request, error)
- func GetTconf(tconfName string, tconfSet []danmtypes.TenantConfig) *danmtypes.TenantConfig
- func GetTestNet(netId string, testNets []danmtypes.DanmNet) *danmtypes.DanmNet
- func InitAllocPool(dnet *danmtypes.DanmNet)
- func ReserveVnis(iface *danmtypes.IfaceProfile, vniRange []int)
- func SetupAllocationPools(nets []danmtypes.DanmNet) error
- func ValidateHttpResponse(writer *httpstub.ResponseWriterStub, isErrorExpected bool, ...) error
- type MalformedObject
- type Reservation
- type ReservedIpsList
- type ReservedVnisList
- type TestArtifacts
- type VniReservation
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllocFor5k = createAlloc(5000) ExhaustedAllocFor5k = exhaustAlloc(AllocFor5k) )
Functions ¶
func CreateHttpRequest ¶
func GetTconf ¶
func GetTconf(tconfName string, tconfSet []danmtypes.TenantConfig) *danmtypes.TenantConfig
func InitAllocPool ¶
func ReserveVnis ¶
func ReserveVnis(iface *danmtypes.IfaceProfile, vniRange []int)
func SetupAllocationPools ¶
func ValidateHttpResponse ¶
Types ¶
type MalformedObject ¶
type MalformedObject struct {
ExtraField string `json:"extraField,omitempty"`
}
type Reservation ¶
type ReservedIpsList ¶
type ReservedIpsList struct {
NetworkId string
Reservations []Reservation
}
func AppendIpToExpectedAllocsList ¶
func AppendIpToExpectedAllocsList(allocs []ReservedIpsList, ip string, isExpectedToBeSet bool, networkId string) []ReservedIpsList
type ReservedVnisList ¶
type ReservedVnisList struct {
ProfileName string
VniType string
Reservations []VniReservation
}
func CreateExpectedVniAllocationsList ¶
func CreateExpectedVniAllocationsList(vni int, vniType, ifaceName string, isExpectedToBeSet bool) []ReservedVnisList
type TestArtifacts ¶
type TestArtifacts struct {
TestNets []danmtypes.DanmNet
TestEps []danmtypes.DanmEp
ReservedIps []ReservedIpsList
TestTconfs []danmtypes.TenantConfig
ReservedVnis []ReservedVnisList
ExhaustAllocs []int
}
type VniReservation ¶
Click to show internal directories.
Click to hide internal directories.