From 97ad6b32ee61fd439c2edefbc371f748cdf82046 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 26 Aug 2018 22:04:12 +0900 Subject: api: change Family fixes #1812 Avoid the cast and use strightforward data strcuture; two variables for afi and safi instead of squashing two into one variable. Signed-off-by: FUJITA Tomonori --- docs/sources/lib.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/sources/lib.md b/docs/sources/lib.md index 2b79c092..f0fbfc35 100644 --- a/docs/sources/lib.md +++ b/docs/sources/lib.md @@ -73,7 +73,7 @@ func main() { _, err := s.AddPath(context.Background(), &api.AddPathRequest{ Path: &api.Path{ - Family: uint32(api.Family_IPv4), + Family: &api.Family{Afi: api.Family_AFI_IP, Safi: api.Family_SAFI_UNICAST}, AnyNlri: nlri, AnyPattrs: attrs, }, -- cgit v1.2.3