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-destination16878948145230081738/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Feb 8, 2024
1 parent 3ef550c commit 8ae0ea2
Show file tree
Hide file tree
Showing 27 changed files with 57,501 additions and 51,618 deletions.
2 changes: 2 additions & 0 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ const (
Speed5Gb = Speed(opb.Port_S_5GB)
// Speed10Gb is a port speed of 10Gbps.
Speed10Gb = Speed(opb.Port_S_10GB)
// Speed40Gb is a port speed of 40Gbps.
Speed40Gb = Speed(opb.Port_S_40GB)
// Speed100Gb is a port speed of 100Gbps.
Speed100Gb = Speed(opb.Port_S_100GB)
// Speed400Gb is a port speed of 400Gbps.
Expand Down
1 change: 1 addition & 0 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ YANG_FILES=(
public/release/models/interfaces/openconfig-if-ip.yang
public/release/models/interfaces/openconfig-if-sdn-ext.yang
public/release/models/interfaces/openconfig-interfaces.yang
public/release/models/isis/openconfig-isis-policy.yang
public/release/models/isis/openconfig-isis.yang
public/release/models/lacp/openconfig-lacp.yang
public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/acl/acl-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/ateflow/ateflow-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/definedsets/definedsets-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
59 changes: 59 additions & 0 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down Expand Up @@ -4439,6 +4440,64 @@ const (
IsisLsdbTypes_ISIS_TLV_TYPE_ROUTER_CAPABILITY E_IsisLsdbTypes_ISIS_TLV_TYPE = 27
)

// E_IsisPolicy_MetricStyle is a derived int64 type which is used to represent
// the enumerated node IsisPolicy_MetricStyle. An additional value named
// IsisPolicy_MetricStyle_UNSET is added to the enumeration which is used as
// the nil value, indicating that the enumeration was not explicitly set by
// the program importing the generated structures.
type E_IsisPolicy_MetricStyle int64

// IsYANGGoEnum ensures that IsisPolicy_MetricStyle implements the yang.GoEnum
// interface. This ensures that IsisPolicy_MetricStyle can be identified as a
// mapped type for a YANG enumeration.
func (E_IsisPolicy_MetricStyle) IsYANGGoEnum() {}

// ΛMap returns the value lookup map associated with IsisPolicy_MetricStyle.
func (E_IsisPolicy_MetricStyle) ΛMap() map[string]map[int64]ygot.EnumDefinition { return ΛEnum }

// String returns a logging-friendly string for E_IsisPolicy_MetricStyle.
func (e E_IsisPolicy_MetricStyle) String() string {
return ygot.EnumLogString(e, int64(e), "E_IsisPolicy_MetricStyle")
}

const (
// IsisPolicy_MetricStyle_UNSET corresponds to the value UNSET of IsisPolicy_MetricStyle
IsisPolicy_MetricStyle_UNSET E_IsisPolicy_MetricStyle = 0
// IsisPolicy_MetricStyle_NARROW_METRIC corresponds to the value NARROW_METRIC of IsisPolicy_MetricStyle
IsisPolicy_MetricStyle_NARROW_METRIC E_IsisPolicy_MetricStyle = 1
// IsisPolicy_MetricStyle_WIDE_METRIC corresponds to the value WIDE_METRIC of IsisPolicy_MetricStyle
IsisPolicy_MetricStyle_WIDE_METRIC E_IsisPolicy_MetricStyle = 2
)

// E_IsisPolicy_MetricType is a derived int64 type which is used to represent
// the enumerated node IsisPolicy_MetricType. An additional value named
// IsisPolicy_MetricType_UNSET is added to the enumeration which is used as
// the nil value, indicating that the enumeration was not explicitly set by
// the program importing the generated structures.
type E_IsisPolicy_MetricType int64

// IsYANGGoEnum ensures that IsisPolicy_MetricType implements the yang.GoEnum
// interface. This ensures that IsisPolicy_MetricType can be identified as a
// mapped type for a YANG enumeration.
func (E_IsisPolicy_MetricType) IsYANGGoEnum() {}

// ΛMap returns the value lookup map associated with IsisPolicy_MetricType.
func (E_IsisPolicy_MetricType) ΛMap() map[string]map[int64]ygot.EnumDefinition { return ΛEnum }

// String returns a logging-friendly string for E_IsisPolicy_MetricType.
func (e E_IsisPolicy_MetricType) String() string {
return ygot.EnumLogString(e, int64(e), "E_IsisPolicy_MetricType")
}

const (
// IsisPolicy_MetricType_UNSET corresponds to the value UNSET of IsisPolicy_MetricType
IsisPolicy_MetricType_UNSET E_IsisPolicy_MetricType = 0
// IsisPolicy_MetricType_INTERNAL corresponds to the value INTERNAL of IsisPolicy_MetricType
IsisPolicy_MetricType_INTERNAL E_IsisPolicy_MetricType = 1
// IsisPolicy_MetricType_EXTERNAL corresponds to the value EXTERNAL of IsisPolicy_MetricType
IsisPolicy_MetricType_EXTERNAL E_IsisPolicy_MetricType = 2
)

// E_IsisTypes_AFI_SAFI_TYPE is a derived int64 type which is used to represent
// the enumerated node IsisTypes_AFI_SAFI_TYPE. An additional value named
// IsisTypes_AFI_SAFI_TYPE_UNSET is added to the enumeration which is used as
Expand Down
27 changes: 27 additions & 0 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down Expand Up @@ -1213,6 +1214,14 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
26: {Name: "PURGE_OI", DefiningModule: "openconfig-isis-lsdb-types"},
27: {Name: "ROUTER_CAPABILITY", DefiningModule: "openconfig-isis-lsdb-types"},
},
"E_IsisPolicy_MetricStyle": {
1: {Name: "NARROW_METRIC"},
2: {Name: "WIDE_METRIC"},
},
"E_IsisPolicy_MetricType": {
1: {Name: "INTERNAL"},
2: {Name: "EXTERNAL"},
},
"E_IsisTypes_AFI_SAFI_TYPE": {
1: {Name: "IPV4_MULTICAST", DefiningModule: "openconfig-isis-types"},
2: {Name: "IPV4_UNICAST", DefiningModule: "openconfig-isis-types"},
Expand Down Expand Up @@ -4665,6 +4674,18 @@ func initΛEnumTypes() {
"/routing-policy/policy-definitions/policy-definition/statements/statement/actions/config/policy-result": {
reflect.TypeOf((E_RoutingPolicy_PolicyResultType)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/config/set-metric-style-type": {
reflect.TypeOf((E_IsisPolicy_MetricStyle)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/config/set-metric-type": {
reflect.TypeOf((E_IsisPolicy_MetricType)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/state/set-metric-style-type": {
reflect.TypeOf((E_IsisPolicy_MetricStyle)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/actions/isis-actions/state/set-metric-type": {
reflect.TypeOf((E_IsisPolicy_MetricType)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/actions/ospf-actions/set-metric/config/metric-type": {
reflect.TypeOf((E_SetMetric_MetricType)(0)),
},
Expand Down Expand Up @@ -4731,6 +4752,12 @@ func initΛEnumTypes() {
"/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/config/install-protocol-eq": {
reflect.TypeOf((E_PolicyTypes_INSTALL_PROTOCOL_TYPE)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/isis-conditions/config/match-metric-type": {
reflect.TypeOf((E_IsisPolicy_MetricType)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/isis-conditions/state/match-metric-type": {
reflect.TypeOf((E_IsisPolicy_MetricType)(0)),
},
"/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-neighbor-set/config/match-set-options": {
reflect.TypeOf((E_RoutingPolicy_MatchSetOptionsRestrictedType)(0)),
},
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/gnmicollectormetadata/gnmicollectormetadata-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/interfaces/interfaces-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/keychain/keychain-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/lacp/lacp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
1 change: 1 addition & 0 deletions gnmi/oc/lldp/lldp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ using the following YANG input files:
- public/release/models/interfaces/openconfig-if-ip.yang
- public/release/models/interfaces/openconfig-if-sdn-ext.yang
- public/release/models/interfaces/openconfig-interfaces.yang
- public/release/models/isis/openconfig-isis-policy.yang
- public/release/models/isis/openconfig-isis.yang
- public/release/models/lacp/openconfig-lacp.yang
- public/release/models/lldp/openconfig-lldp-types.yang
Expand Down
Loading

0 comments on commit 8ae0ea2

Please sign in to comment.