Verified Commit c16448e2 authored by meskio's avatar meskio 🏔️
Browse files

Assign an accepted bandwidth ratio to TBLinks

TBLinks are not going to be tested by onbasca, let's use ratio 1 for
them.

Closes: #153
parent 1e2d0868
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -84,6 +84,8 @@ type TBLink struct {
func NewTBLink() *TBLink {
	tl := &TBLink{ResourceBase: *core.NewResourceBase()}
	tl.TestResult().State = core.StateFunctional
	ratio := 1.0
	tl.TestResult().Ratio = &ratio
	tl.SetType(ResourceTypeTBLink)
	return tl
}