MCPcopy
hub / github.com/osrg/gobgp / Append

Method Append

internal/pkg/table/policy.go:835–842  ·  view source on GitHub ↗
(arg DefinedSet)

Source from the content-addressed store, hash-verified

833}
834
835func (lhs *AsPathSet) Append(arg DefinedSet) error {
836 if lhs.Type() != arg.Type() {
837 return fmt.Errorf("can't append to different type of defined-set")
838 }
839 lhs.list = append(lhs.list, arg.(*AsPathSet).list...)
840 lhs.singleList = append(lhs.singleList, arg.(*AsPathSet).singleList...)
841 return nil
842}
843
844func (lhs *AsPathSet) Remove(arg DefinedSet) error {
845 if lhs.Type() != arg.Type() {

Callers

nothing calls this directly

Calls 2

TypeMethod · 0.95
TypeMethod · 0.65

Tested by

no test coverage detected