summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/attribute.go3
-rw-r--r--api/attribute_test.go3
-rw-r--r--api/capability.go3
-rw-r--r--api/capability_test.go3
-rw-r--r--api/util.go2
5 files changed, 5 insertions, 9 deletions
diff --git a/api/attribute.go b/api/attribute.go
index 65ca6a4f..c4ac1375 100644
--- a/api/attribute.go
+++ b/api/attribute.go
@@ -22,9 +22,8 @@ import (
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/any"
+ "github.com/osrg/gobgp/pkg/packet/bgp"
log "github.com/sirupsen/logrus"
-
- "github.com/osrg/gobgp/packet/bgp"
)
func NewOriginAttributeFromNative(a *bgp.PathAttributeOrigin) *OriginAttribute {
diff --git a/api/attribute_test.go b/api/attribute_test.go
index 271b0191..72b20bf1 100644
--- a/api/attribute_test.go
+++ b/api/attribute_test.go
@@ -19,10 +19,9 @@ import (
"net"
"testing"
- "github.com/osrg/gobgp/packet/bgp"
-
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/any"
+ "github.com/osrg/gobgp/pkg/packet/bgp"
"github.com/stretchr/testify/assert"
)
diff --git a/api/capability.go b/api/capability.go
index 80e16c6f..15231bbb 100644
--- a/api/capability.go
+++ b/api/capability.go
@@ -21,8 +21,7 @@ import (
proto "github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
"github.com/golang/protobuf/ptypes/any"
-
- "github.com/osrg/gobgp/packet/bgp"
+ "github.com/osrg/gobgp/pkg/packet/bgp"
)
func NewMultiProtocolCapability(a *bgp.CapMultiProtocol) *MultiProtocolCapability {
diff --git a/api/capability_test.go b/api/capability_test.go
index e092c836..a0c34db1 100644
--- a/api/capability_test.go
+++ b/api/capability_test.go
@@ -18,9 +18,8 @@ package gobgpapi
import (
"testing"
+ "github.com/osrg/gobgp/pkg/packet/bgp"
"github.com/stretchr/testify/assert"
-
- "github.com/osrg/gobgp/packet/bgp"
)
func Test_MultiProtocolCapability(t *testing.T) {
diff --git a/api/util.go b/api/util.go
index b77b35ec..c06484c0 100644
--- a/api/util.go
+++ b/api/util.go
@@ -20,7 +20,7 @@ import (
"net"
"time"
- "github.com/osrg/gobgp/packet/bgp"
+ "github.com/osrg/gobgp/pkg/packet/bgp"
)
func getNLRI(family bgp.RouteFamily, buf []byte) (bgp.AddrPrefixInterface, error) {