diff options
author | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-10-21 11:45:45 +0900 |
---|---|---|
committer | Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp> | 2015-10-21 11:45:45 +0900 |
commit | 087c1871c899aee115b07182c03d071082c58ab3 (patch) | |
tree | 0e62945a6ac78123ac56af560a248f8a361ae7aa | |
parent | 06e15e3490be18bc23ea3c337a389739a5e7db2f (diff) |
policy: add missing arg
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
-rw-r--r-- | table/policy.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |