From 087c1871c899aee115b07182c03d071082c58ab3 Mon Sep 17 00:00:00 2001 From: Hiroshi Yokoi Date: Wed, 21 Oct 2015 11:45:45 +0900 Subject: policy: add missing arg Signed-off-by: Hiroshi Yokoi --- table/policy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'table/policy.go') diff --git a/table/policy.go b/table/policy.go index 5772bfbb..865db3f3 100644 --- a/table/policy.go +++ b/table/policy.go @@ -770,7 +770,7 @@ func (s *ExtCommunitySet) ToApiStruct() *api.DefinedSet { case bgp.EC_SUBTYPE_ROUTE_ORIGIN: return fmt.Sprintf("soo:%s", arg) default: - return fmt.Sprintf("%d:%s", s.subtypeList[idx]) + return fmt.Sprintf("%d:%s", s.subtypeList[idx], arg) } } for idx, exp := range s.list { @@ -1660,7 +1660,7 @@ func (a *ExtCommunityAction) ToApiStruct() *api.CommunityAction { case bgp.EC_SUBTYPE_ROUTE_ORIGIN: return fmt.Sprintf("soo:%s", arg) default: - return fmt.Sprintf("%d:%s", a.subtypeList[idx]) + return fmt.Sprintf("%d:%s", a.subtypeList[idx], arg) } } for idx, c := range a.list { -- cgit v1.2.3