Skip to content

Commit c3b918b

Browse files
GGN Engprod Teamjasdeep-hundal
authored andcommitted
Project import generated by Copybara.
FolderOrigin-RevId: /usr/local/google/home/hundal/copybara/temp/folder-destination10392443773615029406/.
1 parent 31f30ba commit c3b918b

File tree

27 files changed

+100082
-54861
lines changed

27 files changed

+100082
-54861
lines changed

gnmi/generate.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ YANG_FILES=(
136136

137137
OTG_YANG_FILES=(
138138
models-yang/models/bgp/open-traffic-generator-bgp.yang
139+
models-yang/models/bmp-server/open-traffic-generator-bmp-server.yang
139140
models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
140141
models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
141142
models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang

gnmi/oc/schema.go

Lines changed: 51564 additions & 51561 deletions
Large diffs are not rendered by default.

gnmi/otg/bgp/bgp-0.go

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ of structs which generate gNMI paths for a YANG schema.
55
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.20)
66
using the following YANG input files:
77
- models-yang/models/bgp/open-traffic-generator-bgp.yang
8+
- models-yang/models/bmp-server/open-traffic-generator-bmp-server.yang
89
- models-yang/models/dhcp/v4client/open-traffic-generator-dhcpv4client.yang
910
- models-yang/models/dhcp/v4server/open-traffic-generator-dhcpv4server.yang
1011
- models-yang/models/dhcp/v6client/open-traffic-generator-dhcpv6client.yang
@@ -476,8 +477,8 @@ func (n *BgpPeer_UnicastIpv4PrefixPathAny) WithPrefixLength(PrefixLength uint32)
476477
}
477478

478479
// WithOrigin sets BgpPeer_UnicastIpv4PrefixPathAny's key "origin" to the specified value.
479-
// Origin: oc.E_UnicastIpv4Prefix_Origin
480-
func (n *BgpPeer_UnicastIpv4PrefixPathAny) WithOrigin(Origin oc.E_UnicastIpv4Prefix_Origin) *BgpPeer_UnicastIpv4PrefixPathAny {
480+
// Origin: oc.E_Bgp_UnicastIpv4Prefix_Origin
481+
func (n *BgpPeer_UnicastIpv4PrefixPathAny) WithOrigin(Origin oc.E_Bgp_UnicastIpv4Prefix_Origin) *BgpPeer_UnicastIpv4PrefixPathAny {
481482
ygnmi.ModifyKey(n.NodePath, "origin", Origin)
482483
return n
483484
}
@@ -498,9 +499,9 @@ func (n *BgpPeer_UnicastIpv4PrefixPathAny) WithPathId(PathId uint32) *BgpPeer_Un
498499
//
499500
// Address: string
500501
// PrefixLength: uint32
501-
// Origin: oc.E_UnicastIpv4Prefix_Origin
502+
// Origin: oc.E_Bgp_UnicastIpv4Prefix_Origin
502503
// PathId: uint32
503-
func (n *BgpPeerPath) UnicastIpv4Prefix(Address string, PrefixLength uint32, Origin oc.E_UnicastIpv4Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv4PrefixPath {
504+
func (n *BgpPeerPath) UnicastIpv4Prefix(Address string, PrefixLength uint32, Origin oc.E_Bgp_UnicastIpv4Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv4PrefixPath {
504505
ps := &BgpPeer_UnicastIpv4PrefixPath{
505506
NodePath: ygnmi.NewNodePath(
506507
[]string{"unicast-ipv4-prefixes", "unicast-ipv4-prefix"},
@@ -520,9 +521,9 @@ func (n *BgpPeerPath) UnicastIpv4Prefix(Address string, PrefixLength uint32, Ori
520521
//
521522
// Address: string
522523
// PrefixLength: uint32
523-
// Origin: oc.E_UnicastIpv4Prefix_Origin
524+
// Origin: oc.E_Bgp_UnicastIpv4Prefix_Origin
524525
// PathId: uint32
525-
func (n *BgpPeerPathAny) UnicastIpv4Prefix(Address string, PrefixLength uint32, Origin oc.E_UnicastIpv4Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv4PrefixPathAny {
526+
func (n *BgpPeerPathAny) UnicastIpv4Prefix(Address string, PrefixLength uint32, Origin oc.E_Bgp_UnicastIpv4Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv4PrefixPathAny {
526527
ps := &BgpPeer_UnicastIpv4PrefixPathAny{
527528
NodePath: ygnmi.NewNodePath(
528529
[]string{"unicast-ipv4-prefixes", "unicast-ipv4-prefix"},
@@ -582,8 +583,8 @@ func (n *BgpPeer_UnicastIpv6PrefixPathAny) WithPrefixLength(PrefixLength uint32)
582583
}
583584

584585
// WithOrigin sets BgpPeer_UnicastIpv6PrefixPathAny's key "origin" to the specified value.
585-
// Origin: oc.E_UnicastIpv6Prefix_Origin
586-
func (n *BgpPeer_UnicastIpv6PrefixPathAny) WithOrigin(Origin oc.E_UnicastIpv6Prefix_Origin) *BgpPeer_UnicastIpv6PrefixPathAny {
586+
// Origin: oc.E_Bgp_UnicastIpv6Prefix_Origin
587+
func (n *BgpPeer_UnicastIpv6PrefixPathAny) WithOrigin(Origin oc.E_Bgp_UnicastIpv6Prefix_Origin) *BgpPeer_UnicastIpv6PrefixPathAny {
587588
ygnmi.ModifyKey(n.NodePath, "origin", Origin)
588589
return n
589590
}
@@ -604,9 +605,9 @@ func (n *BgpPeer_UnicastIpv6PrefixPathAny) WithPathId(PathId uint32) *BgpPeer_Un
604605
//
605606
// Address: string
606607
// PrefixLength: uint32
607-
// Origin: oc.E_UnicastIpv6Prefix_Origin
608+
// Origin: oc.E_Bgp_UnicastIpv6Prefix_Origin
608609
// PathId: uint32
609-
func (n *BgpPeerPath) UnicastIpv6Prefix(Address string, PrefixLength uint32, Origin oc.E_UnicastIpv6Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv6PrefixPath {
610+
func (n *BgpPeerPath) UnicastIpv6Prefix(Address string, PrefixLength uint32, Origin oc.E_Bgp_UnicastIpv6Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv6PrefixPath {
610611
ps := &BgpPeer_UnicastIpv6PrefixPath{
611612
NodePath: ygnmi.NewNodePath(
612613
[]string{"unicast-ipv6-prefixes", "unicast-ipv6-prefix"},
@@ -626,9 +627,9 @@ func (n *BgpPeerPath) UnicastIpv6Prefix(Address string, PrefixLength uint32, Ori
626627
//
627628
// Address: string
628629
// PrefixLength: uint32
629-
// Origin: oc.E_UnicastIpv6Prefix_Origin
630+
// Origin: oc.E_Bgp_UnicastIpv6Prefix_Origin
630631
// PathId: uint32
631-
func (n *BgpPeerPathAny) UnicastIpv6Prefix(Address string, PrefixLength uint32, Origin oc.E_UnicastIpv6Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv6PrefixPathAny {
632+
func (n *BgpPeerPathAny) UnicastIpv6Prefix(Address string, PrefixLength uint32, Origin oc.E_Bgp_UnicastIpv6Prefix_Origin, PathId uint32) *BgpPeer_UnicastIpv6PrefixPathAny {
632633
ps := &BgpPeer_UnicastIpv6PrefixPathAny{
633634
NodePath: ygnmi.NewNodePath(
634635
[]string{"unicast-ipv6-prefixes", "unicast-ipv6-prefix"},
@@ -3149,8 +3150,8 @@ type BgpPeer_UnicastIpv4Prefix_OriginPathAny struct {
31493150
// Instantiating module: "open-traffic-generator-bgp"
31503151
// Path from parent: "state/origin"
31513152
// Path from root: "/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/origin"
3152-
func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E_UnicastIpv4Prefix_Origin] {
3153-
return ygnmi.NewSingletonQuery[oc.E_UnicastIpv4Prefix_Origin](
3153+
func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin] {
3154+
return ygnmi.NewSingletonQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin](
31543155
"BgpPeer_UnicastIpv4Prefix",
31553156
true,
31563157
false,
@@ -3163,7 +3164,7 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E
31633164
nil,
31643165
n.parent,
31653166
),
3166-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv4Prefix_Origin, bool) {
3167+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv4Prefix_Origin, bool) {
31673168
ret := gs.(*oc.BgpPeer_UnicastIpv4Prefix).Origin
31683169
return ret, !reflect.ValueOf(ret).IsZero()
31693170
},
@@ -3186,8 +3187,8 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E
31863187
// Instantiating module: "open-traffic-generator-bgp"
31873188
// Path from parent: "state/origin"
31883189
// Path from root: "/bgp-peers/bgp-peer/unicast-ipv4-prefixes/unicast-ipv4-prefix/state/origin"
3189-
func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc.E_UnicastIpv4Prefix_Origin] {
3190-
return ygnmi.NewWildcardQuery[oc.E_UnicastIpv4Prefix_Origin](
3190+
func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin] {
3191+
return ygnmi.NewWildcardQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin](
31913192
"BgpPeer_UnicastIpv4Prefix",
31923193
true,
31933194
false,
@@ -3200,7 +3201,7 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc
32003201
nil,
32013202
n.parent,
32023203
),
3203-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv4Prefix_Origin, bool) {
3204+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv4Prefix_Origin, bool) {
32043205
ret := gs.(*oc.BgpPeer_UnicastIpv4Prefix).Origin
32053206
return ret, !reflect.ValueOf(ret).IsZero()
32063207
},
@@ -3223,8 +3224,8 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc
32233224
// Instantiating module: "open-traffic-generator-bgp"
32243225
// Path from parent: "origin"
32253226
// Path from root: ""
3226-
func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_UnicastIpv4Prefix_Origin] {
3227-
return ygnmi.NewConfigQuery[oc.E_UnicastIpv4Prefix_Origin](
3227+
func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin] {
3228+
return ygnmi.NewConfigQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin](
32283229
"BgpPeer_UnicastIpv4Prefix",
32293230
false,
32303231
true,
@@ -3237,7 +3238,7 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_U
32373238
nil,
32383239
n.parent,
32393240
),
3240-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv4Prefix_Origin, bool) {
3241+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv4Prefix_Origin, bool) {
32413242
ret := gs.(*oc.BgpPeer_UnicastIpv4Prefix).Origin
32423243
return ret, !reflect.ValueOf(ret).IsZero()
32433244
},
@@ -3260,8 +3261,8 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_U
32603261
// Instantiating module: "open-traffic-generator-bgp"
32613262
// Path from parent: "origin"
32623263
// Path from root: ""
3263-
func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) Config() ygnmi.WildcardQuery[oc.E_UnicastIpv4Prefix_Origin] {
3264-
return ygnmi.NewWildcardQuery[oc.E_UnicastIpv4Prefix_Origin](
3264+
func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) Config() ygnmi.WildcardQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin] {
3265+
return ygnmi.NewWildcardQuery[oc.E_Bgp_UnicastIpv4Prefix_Origin](
32653266
"BgpPeer_UnicastIpv4Prefix",
32663267
false,
32673268
true,
@@ -3274,7 +3275,7 @@ func (n *BgpPeer_UnicastIpv4Prefix_OriginPathAny) Config() ygnmi.WildcardQuery[o
32743275
nil,
32753276
n.parent,
32763277
),
3277-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv4Prefix_Origin, bool) {
3278+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv4Prefix_Origin, bool) {
32783279
ret := gs.(*oc.BgpPeer_UnicastIpv4Prefix).Origin
32793280
return ret, !reflect.ValueOf(ret).IsZero()
32803281
},
@@ -9449,8 +9450,8 @@ type BgpPeer_UnicastIpv6Prefix_OriginPathAny struct {
94499450
// Instantiating module: "open-traffic-generator-bgp"
94509451
// Path from parent: "state/origin"
94519452
// Path from root: "/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/origin"
9452-
func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E_UnicastIpv6Prefix_Origin] {
9453-
return ygnmi.NewSingletonQuery[oc.E_UnicastIpv6Prefix_Origin](
9453+
func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin] {
9454+
return ygnmi.NewSingletonQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin](
94549455
"BgpPeer_UnicastIpv6Prefix",
94559456
true,
94569457
false,
@@ -9463,7 +9464,7 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E
94639464
nil,
94649465
n.parent,
94659466
),
9466-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv6Prefix_Origin, bool) {
9467+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv6Prefix_Origin, bool) {
94679468
ret := gs.(*oc.BgpPeer_UnicastIpv6Prefix).Origin
94689469
return ret, !reflect.ValueOf(ret).IsZero()
94699470
},
@@ -9486,8 +9487,8 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) State() ygnmi.SingletonQuery[oc.E
94869487
// Instantiating module: "open-traffic-generator-bgp"
94879488
// Path from parent: "state/origin"
94889489
// Path from root: "/bgp-peers/bgp-peer/unicast-ipv6-prefixes/unicast-ipv6-prefix/state/origin"
9489-
func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc.E_UnicastIpv6Prefix_Origin] {
9490-
return ygnmi.NewWildcardQuery[oc.E_UnicastIpv6Prefix_Origin](
9490+
func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin] {
9491+
return ygnmi.NewWildcardQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin](
94919492
"BgpPeer_UnicastIpv6Prefix",
94929493
true,
94939494
false,
@@ -9500,7 +9501,7 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc
95009501
nil,
95019502
n.parent,
95029503
),
9503-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv6Prefix_Origin, bool) {
9504+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv6Prefix_Origin, bool) {
95049505
ret := gs.(*oc.BgpPeer_UnicastIpv6Prefix).Origin
95059506
return ret, !reflect.ValueOf(ret).IsZero()
95069507
},
@@ -9523,8 +9524,8 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) State() ygnmi.WildcardQuery[oc
95239524
// Instantiating module: "open-traffic-generator-bgp"
95249525
// Path from parent: "origin"
95259526
// Path from root: ""
9526-
func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_UnicastIpv6Prefix_Origin] {
9527-
return ygnmi.NewConfigQuery[oc.E_UnicastIpv6Prefix_Origin](
9527+
func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin] {
9528+
return ygnmi.NewConfigQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin](
95289529
"BgpPeer_UnicastIpv6Prefix",
95299530
false,
95309531
true,
@@ -9537,7 +9538,7 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_U
95379538
nil,
95389539
n.parent,
95399540
),
9540-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv6Prefix_Origin, bool) {
9541+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv6Prefix_Origin, bool) {
95419542
ret := gs.(*oc.BgpPeer_UnicastIpv6Prefix).Origin
95429543
return ret, !reflect.ValueOf(ret).IsZero()
95439544
},
@@ -9560,8 +9561,8 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPath) Config() ygnmi.ConfigQuery[oc.E_U
95609561
// Instantiating module: "open-traffic-generator-bgp"
95619562
// Path from parent: "origin"
95629563
// Path from root: ""
9563-
func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) Config() ygnmi.WildcardQuery[oc.E_UnicastIpv6Prefix_Origin] {
9564-
return ygnmi.NewWildcardQuery[oc.E_UnicastIpv6Prefix_Origin](
9564+
func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) Config() ygnmi.WildcardQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin] {
9565+
return ygnmi.NewWildcardQuery[oc.E_Bgp_UnicastIpv6Prefix_Origin](
95659566
"BgpPeer_UnicastIpv6Prefix",
95669567
false,
95679568
true,
@@ -9574,7 +9575,7 @@ func (n *BgpPeer_UnicastIpv6Prefix_OriginPathAny) Config() ygnmi.WildcardQuery[o
95749575
nil,
95759576
n.parent,
95769577
),
9577-
func(gs ygot.ValidatedGoStruct) (oc.E_UnicastIpv6Prefix_Origin, bool) {
9578+
func(gs ygot.ValidatedGoStruct) (oc.E_Bgp_UnicastIpv6Prefix_Origin, bool) {
95789579
ret := gs.(*oc.BgpPeer_UnicastIpv6Prefix).Origin
95799580
return ret, !reflect.ValueOf(ret).IsZero()
95809581
},

0 commit comments

Comments
 (0)