Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/local/google/home/gdennis/copybara/temp/folder-destination16276920268593426828/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Sep 8, 2023
1 parent 699d044 commit 8a2bfe0
Show file tree
Hide file tree
Showing 6 changed files with 155,343 additions and 69,458 deletions.
10 changes: 6 additions & 4 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -1210,14 +1210,16 @@ func (e E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY) String() string {
const (
// BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_UNSET corresponds to the value UNSET of BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_UNSET E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 0
// BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_GRACEFUL_SHUTDOWN corresponds to the value GRACEFUL_SHUTDOWN of BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_GRACEFUL_SHUTDOWN E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 1
// BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NOPEER corresponds to the value NOPEER of BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NOPEER E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 1
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NOPEER E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 2
// BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_ADVERTISE corresponds to the value NO_ADVERTISE of BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_ADVERTISE E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 2
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_ADVERTISE E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 3
// BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_EXPORT corresponds to the value NO_EXPORT of BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_EXPORT E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 3
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_EXPORT E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 4
// BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_EXPORT_SUBCONFED corresponds to the value NO_EXPORT_SUBCONFED of BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_EXPORT_SUBCONFED E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 4
BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY_NO_EXPORT_SUBCONFED E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY = 5
)

// E_Bgp_CommunityType is a derived int64 type which is used to represent
Expand Down
9 changes: 5 additions & 4 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,11 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
38: {Name: "UPDATE_MESSAGE_SUBCODE", DefiningModule: "openconfig-bgp-types"},
},
"E_BgpTypes_BGP_WELL_KNOWN_STD_COMMUNITY": {
1: {Name: "NOPEER", DefiningModule: "openconfig-bgp-types"},
2: {Name: "NO_ADVERTISE", DefiningModule: "openconfig-bgp-types"},
3: {Name: "NO_EXPORT", DefiningModule: "openconfig-bgp-types"},
4: {Name: "NO_EXPORT_SUBCONFED", DefiningModule: "openconfig-bgp-types"},
1: {Name: "GRACEFUL_SHUTDOWN", DefiningModule: "openconfig-bgp-types"},
2: {Name: "NOPEER", DefiningModule: "openconfig-bgp-types"},
3: {Name: "NO_ADVERTISE", DefiningModule: "openconfig-bgp-types"},
4: {Name: "NO_EXPORT", DefiningModule: "openconfig-bgp-types"},
5: {Name: "NO_EXPORT_SUBCONFED", DefiningModule: "openconfig-bgp-types"},
},
"E_Bgp_CommunityType": {
1: {Name: "STANDARD"},
Expand Down
214 changes: 214 additions & 0 deletions gnmi/oc/networkinstance/networkinstance-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -55851,6 +55851,184 @@ func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_De
)
}

// NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPath represents the /openconfig-network-instance/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/state/record-route-enabled YANG schema element.
type NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPath struct {
*ygnmi.NodePath
parent ygnmi.PathStruct
}

// NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPathAny represents the wildcard version of the /openconfig-network-instance/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/state/record-route-enabled YANG schema element.
type NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPathAny struct {
*ygnmi.NodePath
parent ygnmi.PathStruct
}

// State returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-mpls-te"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "state/record-route-enabled"
// Path from root: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/state/record-route-enabled"
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPath) State() ygnmi.SingletonQuery[bool] {
return ygnmi.NewSingletonQuery[bool](
"NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes",
true,
true,
true,
true,
false,
ygnmi.NewNodePath(
[]string{"state", "record-route-enabled"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (bool, bool) {
ret := gs.(*oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes).RecordRouteEnabled
if ret == nil {
var zero bool
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct {
return new(oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes)
},
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
nil,
nil,
)
}

// State returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-mpls-te"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "state/record-route-enabled"
// Path from root: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/state/record-route-enabled"
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPathAny) State() ygnmi.WildcardQuery[bool] {
return ygnmi.NewWildcardQuery[bool](
"NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes",
true,
true,
true,
true,
false,
ygnmi.NewNodePath(
[]string{"state", "record-route-enabled"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (bool, bool) {
ret := gs.(*oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes).RecordRouteEnabled
if ret == nil {
var zero bool
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct {
return new(oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes)
},
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
nil,
)
}

// Config returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-mpls-te"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "config/record-route-enabled"
// Path from root: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/config/record-route-enabled"
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPath) Config() ygnmi.ConfigQuery[bool] {
return ygnmi.NewConfigQuery[bool](
"NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes",
false,
true,
true,
true,
false,
ygnmi.NewNodePath(
[]string{"config", "record-route-enabled"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (bool, bool) {
ret := gs.(*oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes).RecordRouteEnabled
if ret == nil {
var zero bool
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct {
return new(oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes)
},
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
nil,
nil,
)
}

// Config returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-mpls-te"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "config/record-route-enabled"
// Path from root: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/config/record-route-enabled"
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPathAny) Config() ygnmi.WildcardQuery[bool] {
return ygnmi.NewWildcardQuery[bool](
"NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes",
false,
true,
true,
true,
false,
ygnmi.NewNodePath(
[]string{"config", "record-route-enabled"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (bool, bool) {
ret := gs.(*oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes).RecordRouteEnabled
if ret == nil {
var zero bool
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct {
return new(oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes)
},
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
nil,
)
}

// NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributesPath represents the /openconfig-network-instance/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes YANG schema element.
type NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributesPath struct {
*ygnmi.NodePath
Expand Down Expand Up @@ -56109,6 +56287,42 @@ func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributesPat
return ps
}

// RecordRouteEnabled (leaf): Enables recording a path on an LSP using the record route object (RRO)
//
// Defining module: "openconfig-mpls-te"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "*/record-route-enabled"
// Path from root: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/*/record-route-enabled"
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributesPath) RecordRouteEnabled() *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPath {
ps := &NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPath{
NodePath: ygnmi.NewNodePath(
[]string{"*", "record-route-enabled"},
map[string]interface{}{},
n,
),
parent: n,
}
return ps
}

// RecordRouteEnabled (leaf): Enables recording a path on an LSP using the record route object (RRO)
//
// Defining module: "openconfig-mpls-te"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "*/record-route-enabled"
// Path from root: "/network-instances/network-instance/mpls/lsps/constrained-path/tunnels/tunnel/p2p-tunnel-attributes/*/record-route-enabled"
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributesPathAny) RecordRouteEnabled() *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPathAny {
ps := &NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes_RecordRouteEnabledPathAny{
NodePath: ygnmi.NewNodePath(
[]string{"*", "record-route-enabled"},
map[string]interface{}{},
n,
),
parent: n,
}
return ps
}

// State returns a Query that can be used in gNMI operations.
func (n *NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributesPath) State() ygnmi.SingletonQuery[*oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes] {
return ygnmi.NewSingletonQuery[*oc.NetworkInstance_Mpls_Lsps_ConstrainedPath_Tunnel_P2PTunnelAttributes](
Expand Down
Loading

0 comments on commit 8a2bfe0

Please sign in to comment.