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-destination1773900179756085762/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Mar 20, 2023
1 parent c831518 commit ae52524
Show file tree
Hide file tree
Showing 12 changed files with 44,990 additions and 44,042 deletions.
204 changes: 202 additions & 2 deletions gnmi/oc/networkinstance/networkinstance-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -307273,6 +307273,146 @@ func (n *NetworkInstance_Protocol_Isis_Global_IidTlvPathAny) Config() ygnmi.Wild
)
}

// State returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "state/instance-id"
// Path from root: "/network-instances/network-instance/protocols/protocol/isis/global/state/instance-id"
func (n *NetworkInstance_Protocol_Isis_Global_InstanceIdPath) State() ygnmi.SingletonQuery[uint16] {
return ygnmi.NewLeafSingletonQuery[uint16](
"NetworkInstance_Protocol_Isis_Global",
true,
true,
ygnmi.NewNodePath(
[]string{"state", "instance-id"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (uint16, bool) {
ret := gs.(*oc.NetworkInstance_Protocol_Isis_Global).InstanceId
if ret == nil {
var zero uint16
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct { return new(oc.NetworkInstance_Protocol_Isis_Global) },
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
)
}

// State returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "state/instance-id"
// Path from root: "/network-instances/network-instance/protocols/protocol/isis/global/state/instance-id"
func (n *NetworkInstance_Protocol_Isis_Global_InstanceIdPathAny) State() ygnmi.WildcardQuery[uint16] {
return ygnmi.NewLeafWildcardQuery[uint16](
"NetworkInstance_Protocol_Isis_Global",
true,
true,
ygnmi.NewNodePath(
[]string{"state", "instance-id"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (uint16, bool) {
ret := gs.(*oc.NetworkInstance_Protocol_Isis_Global).InstanceId
if ret == nil {
var zero uint16
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct { return new(oc.NetworkInstance_Protocol_Isis_Global) },
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
)
}

// Config returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "config/instance-id"
// Path from root: "/network-instances/network-instance/protocols/protocol/isis/global/config/instance-id"
func (n *NetworkInstance_Protocol_Isis_Global_InstanceIdPath) Config() ygnmi.ConfigQuery[uint16] {
return ygnmi.NewLeafConfigQuery[uint16](
"NetworkInstance_Protocol_Isis_Global",
false,
true,
ygnmi.NewNodePath(
[]string{"config", "instance-id"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (uint16, bool) {
ret := gs.(*oc.NetworkInstance_Protocol_Isis_Global).InstanceId
if ret == nil {
var zero uint16
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct { return new(oc.NetworkInstance_Protocol_Isis_Global) },
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
)
}

// Config returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "config/instance-id"
// Path from root: "/network-instances/network-instance/protocols/protocol/isis/global/config/instance-id"
func (n *NetworkInstance_Protocol_Isis_Global_InstanceIdPathAny) Config() ygnmi.WildcardQuery[uint16] {
return ygnmi.NewLeafWildcardQuery[uint16](
"NetworkInstance_Protocol_Isis_Global",
false,
true,
ygnmi.NewNodePath(
[]string{"config", "instance-id"},
nil,
n.parent,
),
func(gs ygot.ValidatedGoStruct) (uint16, bool) {
ret := gs.(*oc.NetworkInstance_Protocol_Isis_Global).InstanceId
if ret == nil {
var zero uint16
return zero, false
}
return *ret, true
},
func() ygot.ValidatedGoStruct { return new(oc.NetworkInstance_Protocol_Isis_Global) },
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
)
}

// State returns a Query that can be used in gNMI operations.
//
// Defining module: "openconfig-isis"
Expand Down Expand Up @@ -308141,6 +308281,18 @@ type NetworkInstance_Protocol_Isis_Global_InstancePathAny struct {
parent ygnmi.PathStruct
}

// NetworkInstance_Protocol_Isis_Global_InstanceIdPath represents the /openconfig-network-instance/network-instances/network-instance/protocols/protocol/isis/global/state/instance-id YANG schema element.
type NetworkInstance_Protocol_Isis_Global_InstanceIdPath struct {
*ygnmi.NodePath
parent ygnmi.PathStruct
}

// NetworkInstance_Protocol_Isis_Global_InstanceIdPathAny represents the wildcard version of the /openconfig-network-instance/network-instances/network-instance/protocols/protocol/isis/global/state/instance-id YANG schema element.
type NetworkInstance_Protocol_Isis_Global_InstanceIdPathAny struct {
*ygnmi.NodePath
parent ygnmi.PathStruct
}

// NetworkInstance_Protocol_Isis_Global_LevelCapabilityPath represents the /openconfig-network-instance/network-instances/network-instance/protocols/protocol/isis/global/state/level-capability YANG schema element.
type NetworkInstance_Protocol_Isis_Global_LevelCapabilityPath struct {
*ygnmi.NodePath
Expand Down Expand Up @@ -308573,7 +308725,12 @@ func (n *NetworkInstance_Protocol_Isis_GlobalPathAny) IidTlv() *NetworkInstance_
}
}

// Instance (leaf): ISIS Instance.
// Instance (leaf): ISIS Instance. This leaf has been deprecated. The instance name
// is specified within the
// /network-instances/network-instance/protocols/protocol/config/name
// leaf (list key). If a user requires a specific instance identifier
// used in the Instance Identifier TLV to be configured the instance-id
// leaf is used.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
Expand All @@ -308590,7 +308747,12 @@ func (n *NetworkInstance_Protocol_Isis_GlobalPath) Instance() *NetworkInstance_P
}
}

// Instance (leaf): ISIS Instance.
// Instance (leaf): ISIS Instance. This leaf has been deprecated. The instance name
// is specified within the
// /network-instances/network-instance/protocols/protocol/config/name
// leaf (list key). If a user requires a specific instance identifier
// used in the Instance Identifier TLV to be configured the instance-id
// leaf is used.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
Expand All @@ -308607,6 +308769,44 @@ func (n *NetworkInstance_Protocol_Isis_GlobalPathAny) Instance() *NetworkInstanc
}
}

// InstanceId (leaf): When specified, this leaf explicitly indicates the instance identifier
// that is to be used for the IS-IS instance. The value should be included
// in the Instance Identifier (IID) TLV.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "*/instance-id"
// Path from root: "/network-instances/network-instance/protocols/protocol/isis/global/*/instance-id"
func (n *NetworkInstance_Protocol_Isis_GlobalPath) InstanceId() *NetworkInstance_Protocol_Isis_Global_InstanceIdPath {
return &NetworkInstance_Protocol_Isis_Global_InstanceIdPath{
NodePath: ygnmi.NewNodePath(
[]string{"*", "instance-id"},
map[string]interface{}{},
n,
),
parent: n,
}
}

// InstanceId (leaf): When specified, this leaf explicitly indicates the instance identifier
// that is to be used for the IS-IS instance. The value should be included
// in the Instance Identifier (IID) TLV.
//
// Defining module: "openconfig-isis"
// Instantiating module: "openconfig-network-instance"
// Path from parent: "*/instance-id"
// Path from root: "/network-instances/network-instance/protocols/protocol/isis/global/*/instance-id"
func (n *NetworkInstance_Protocol_Isis_GlobalPathAny) InstanceId() *NetworkInstance_Protocol_Isis_Global_InstanceIdPathAny {
return &NetworkInstance_Protocol_Isis_Global_InstanceIdPathAny{
NodePath: ygnmi.NewNodePath(
[]string{"*", "instance-id"},
map[string]interface{}{},
n,
),
parent: n,
}
}

// InterLevelPropagationPolicies (container): Policies to propagate prefixes between IS-IS levels.
//
// Defining module: "openconfig-isis"
Expand Down
Loading

0 comments on commit ae52524

Please sign in to comment.