summaryrefslogtreecommitdiffhomepage
path: root/zebra/zapi_test.go
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-08-28 16:45:53 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-09-06 08:14:14 +0900
commit2c6bca5485ea3e7a35d13b2f3202b07a089fb9ab (patch)
tree6f236f93dd26db685bf0729316dd791ff4137481 /zebra/zapi_test.go
parent06d3e1585e33992bdaf2150171854f3e4fc1ef0c (diff)
zebra/zapi: Use INTERFACE_STATUS for interface status
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'zebra/zapi_test.go')
-rw-r--r--zebra/zapi_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zapi_test.go b/zebra/zapi_test.go
index 59d15ac3..7763043f 100644
--- a/zebra/zapi_test.go
+++ b/zebra/zapi_test.go
@@ -63,7 +63,7 @@ func Test_InterfaceUpdateBody(t *testing.T) {
pos := INTERFACE_NAMSIZ
binary.BigEndian.PutUint32(buf[pos:], 1)
pos += 4
- buf[pos] = INTERFACE_ACTIVE
+ buf[pos] = byte(INTERFACE_ACTIVE)
pos += 1
binary.BigEndian.PutUint64(buf[pos:], 1)
pos += 8 // flags