summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-08 13:12:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-01-09 05:17:57 -0800
commita0b87f1ddf849cc44a39645fb296bfe2d3a5b287 (patch)
treecc620dc8e685ba914a4f489a4f5ceb34c3992982 /config/bgp_configs.go
parentb0fbcc6b1b18d2c9fe67437fe6432914b67c5508 (diff)
config: catch up with the latest openconfig
using commit 20b9cc544012201069e9d6a159ebab17f4172dfb from github.com/openconfig/public Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 41d32d52..42c3e750 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -17,6 +17,12 @@ package config
import "fmt"
+// typedef for typedef openconfig-types:std-regexp
+type StdRegexp string
+
+// typedef for typedef openconfig-types:percentage
+type Percentage uint8
+
// typedef for typedef bgp-types:rr-cluster-id-type
type RrClusterIdType string
@@ -45,7 +51,7 @@ func (v RemovePrivateAsOption) Validate() error {
}
// typedef for typedef bgp-types:bgp-community-regexp-type
-type BgpCommunityRegexpType string
+type BgpCommunityRegexpType StdRegexp
// typedef for typedef bgp-types:community-type
type CommunityType string
@@ -103,9 +109,6 @@ func (v PeerTypeDef) Validate() error {
return nil
}
-// typedef for typedef bgp-types:percentage
-type Percentage uint8
-
// typedef for typedef bgp-types:bgp-session-direction
type BgpSessionDirection string
@@ -1742,6 +1745,9 @@ type BgpConditions struct {
// original -> bgp-pol:next-hop-in
//original type is list of inet:ip-address
NextHopIn []string
+ // original -> bgp-pol:afi-safi-in
+ //original type is list of identityref
+ AfiSafiIn []string
// original -> bgp-pol:local-pref-eq
LocalPrefEq uint32
// original -> bgp-pol:community-count