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-destination11691081639859657791/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Aug 8, 2023
1 parent 15c812a commit 2fd9deb
Show file tree
Hide file tree
Showing 13 changed files with 46,472 additions and 49,870 deletions.
8 changes: 4 additions & 4 deletions ate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package ondatra
import (
"github.com/openconfig/ondatra/binding"
"github.com/openconfig/ondatra/otg"
"github.com/openconfig/ondatra/raw"
)

// ATEDevice is an automated test equipment.
Expand Down Expand Up @@ -46,7 +45,8 @@ func (a *ATEDevice) Actions() *Actions {
return &Actions{a.res.(binding.ATE)}
}

// RawAPIs returns a handle to raw protocol APIs on the ATE.
func (a *ATEDevice) RawAPIs() *raw.ATEAPIs {
return raw.NewATEAPIs(a.res.(binding.ATE))
// RawAPI returns the underlying ATE implementation provided by the binding,
// for low-level access to ATE protocols.
func (a *ATEDevice) RawAPI() binding.ATE {
return a.res.(binding.ATE)
}
8 changes: 7 additions & 1 deletion dut.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ func (d *DUTDevice) Operations() *operations.Operations {
return operations.New(d.res.(binding.DUT))
}

// RawAPI returns the underlying DUT implementation provided by the binding,
// for low-level access to DUT protocols.
func (d *DUTDevice) RawAPI() binding.DUT {
return d.res.(binding.DUT)
}

// RawAPIs returns a handle to raw protocol APIs on the DUT.
func (d *DUTDevice) RawAPIs() *raw.DUTAPIs {
return raw.NewDUTAPIs(d.res.(binding.DUT))
return raw.NewDUTAPIs(d.RawAPI())
}
11 changes: 4 additions & 7 deletions gnmi/gnmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,10 @@ func isContextErr(err error) bool {
GRPCStatus() *status.Status
}
ok := errors.As(err, &st)
return ok && (st.GRPCStatus().Code() == codes.DeadlineExceeded || st.GRPCStatus().Code() == codes.Canceled)
}

// statusErr is an interface implemented by errors returned by gRPC.
// https://pkg.go.dev/google.golang.org/[email protected]/internal/status#Error
type statusErr interface {
GRPCStatus() *status.Status
if !ok {
return errors.Is(err, context.DeadlineExceeded) || errors.Is(err, context.Canceled)
}
return st.GRPCStatus().Code() == codes.DeadlineExceeded || st.GRPCStatus().Code() == codes.Canceled
}

// Await waits for the watch to finish and returns the last received value
Expand Down
12 changes: 10 additions & 2 deletions gnmi/gnmi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"io"
"testing"

"golang.org/x/net/context"

"github.com/openconfig/testt"
"github.com/openconfig/ygnmi/ygnmi"
"google.golang.org/grpc/codes"
Expand All @@ -40,11 +42,17 @@ func TestWatcherAwait(t *testing.T) {
wantStatus bool
wantErr bool
}{{
desc: "wrapped deadline exceeded",
desc: "wrapped rpc deadline exceeded",
inErr: fmt.Errorf("rpc err: %w", status.Error(codes.DeadlineExceeded, "foo")),
}, {
desc: "wrapped canceled",
desc: "wrapped rpc canceled",
inErr: fmt.Errorf("rpc err: %w", status.Error(codes.Canceled, "foo")),
}, {
desc: "wrapped ctx deadline exceeded",
inErr: fmt.Errorf("rpc err: %w", context.DeadlineExceeded),
}, {
desc: "wrapped ctx canceled",
inErr: fmt.Errorf("rpc err: %w", context.Canceled),
}, {
desc: "wrapped EOF",
inErr: fmt.Errorf("rpc err: %w", io.EOF),
Expand Down
150 changes: 14 additions & 136 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -1464,37 +1464,6 @@ const (
DefaultMetric_Flags_INTERNAL E_DefaultMetric_Flags = 1
)

// E_DfElection_DfElectionMethod is a derived int64 type which is used to represent
// the enumerated node DfElection_DfElectionMethod. An additional value named
// DfElection_DfElectionMethod_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_DfElection_DfElectionMethod int64

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

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

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

const (
// DfElection_DfElectionMethod_UNSET corresponds to the value UNSET of DfElection_DfElectionMethod
DfElection_DfElectionMethod_UNSET E_DfElection_DfElectionMethod = 0
// DfElection_DfElectionMethod_DEFAULT corresponds to the value DEFAULT of DfElection_DfElectionMethod
DfElection_DfElectionMethod_DEFAULT E_DfElection_DfElectionMethod = 1
// DfElection_DfElectionMethod_HIGHEST_RANDOM_WEIGHT corresponds to the value HIGHEST_RANDOM_WEIGHT of DfElection_DfElectionMethod
DfElection_DfElectionMethod_HIGHEST_RANDOM_WEIGHT E_DfElection_DfElectionMethod = 2
// DfElection_DfElectionMethod_PREFERENCE corresponds to the value PREFERENCE of DfElection_DfElectionMethod
DfElection_DfElectionMethod_PREFERENCE E_DfElection_DfElectionMethod = 3
)

// E_Egress_IncomingLabel is a derived int64 type which is used to represent
// the enumerated node Egress_IncomingLabel. An additional value named
// Egress_IncomingLabel_UNSET is added to the enumeration which is used as
Expand Down Expand Up @@ -1745,33 +1714,6 @@ const (
Entry_EntryType_DYNAMIC E_Entry_EntryType = 2
)

// E_EthernetSegment_Esi is a derived int64 type which is used to represent
// the enumerated node EthernetSegment_Esi. An additional value named
// EthernetSegment_Esi_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_EthernetSegment_Esi int64

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

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

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

const (
// EthernetSegment_Esi_UNSET corresponds to the value UNSET of EthernetSegment_Esi
EthernetSegment_Esi_UNSET E_EthernetSegment_Esi = 0
// EthernetSegment_Esi_AUTO corresponds to the value AUTO of EthernetSegment_Esi
EthernetSegment_Esi_AUTO E_EthernetSegment_Esi = 1
)

// E_Ethernet_ClientAls is a derived int64 type which is used to represent
// the enumerated node Ethernet_ClientAls. An additional value named
// Ethernet_ClientAls_UNSET is added to the enumeration which is used as
Expand Down Expand Up @@ -1952,37 +1894,6 @@ const (
EvpnInstance_RouteDistinguisher_AUTO E_EvpnInstance_RouteDistinguisher = 1
)

// E_EvpnTypes_EVPN_REDUNDANCY_MODE is a derived int64 type which is used to represent
// the enumerated node EvpnTypes_EVPN_REDUNDANCY_MODE. An additional value named
// EvpnTypes_EVPN_REDUNDANCY_MODE_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_EvpnTypes_EVPN_REDUNDANCY_MODE int64

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

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

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

const (
// EvpnTypes_EVPN_REDUNDANCY_MODE_UNSET corresponds to the value UNSET of EvpnTypes_EVPN_REDUNDANCY_MODE
EvpnTypes_EVPN_REDUNDANCY_MODE_UNSET E_EvpnTypes_EVPN_REDUNDANCY_MODE = 0
// EvpnTypes_EVPN_REDUNDANCY_MODE_ALL_ACTIVE corresponds to the value ALL_ACTIVE of EvpnTypes_EVPN_REDUNDANCY_MODE
EvpnTypes_EVPN_REDUNDANCY_MODE_ALL_ACTIVE E_EvpnTypes_EVPN_REDUNDANCY_MODE = 1
// EvpnTypes_EVPN_REDUNDANCY_MODE_SINGLE_ACTIVE corresponds to the value SINGLE_ACTIVE of EvpnTypes_EVPN_REDUNDANCY_MODE
EvpnTypes_EVPN_REDUNDANCY_MODE_SINGLE_ACTIVE E_EvpnTypes_EVPN_REDUNDANCY_MODE = 2
)

// E_EvpnTypes_EVPN_TYPE is a derived int64 type which is used to represent
// the enumerated node EvpnTypes_EVPN_TYPE. An additional value named
// EvpnTypes_EVPN_TYPE_UNSET is added to the enumeration which is used as
Expand Down Expand Up @@ -2014,43 +1925,6 @@ const (
EvpnTypes_EVPN_TYPE_VLAN_BUNDLE E_EvpnTypes_EVPN_TYPE = 3
)

// E_Evpn_EsiType is a derived int64 type which is used to represent
// the enumerated node Evpn_EsiType. An additional value named
// Evpn_EsiType_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_Evpn_EsiType int64

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

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

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

const (
// Evpn_EsiType_UNSET corresponds to the value UNSET of Evpn_EsiType
Evpn_EsiType_UNSET E_Evpn_EsiType = 0
// Evpn_EsiType_TYPE_0_OPERATOR_CONFIGURED corresponds to the value TYPE_0_OPERATOR_CONFIGURED of Evpn_EsiType
Evpn_EsiType_TYPE_0_OPERATOR_CONFIGURED E_Evpn_EsiType = 1
// Evpn_EsiType_TYPE_1_LACP_BASED corresponds to the value TYPE_1_LACP_BASED of Evpn_EsiType
Evpn_EsiType_TYPE_1_LACP_BASED E_Evpn_EsiType = 2
// Evpn_EsiType_TYPE_2_BRIDGE_PROTOCOL_BASED corresponds to the value TYPE_2_BRIDGE_PROTOCOL_BASED of Evpn_EsiType
Evpn_EsiType_TYPE_2_BRIDGE_PROTOCOL_BASED E_Evpn_EsiType = 3
// Evpn_EsiType_TYPE_3_MAC_BASED corresponds to the value TYPE_3_MAC_BASED of Evpn_EsiType
Evpn_EsiType_TYPE_3_MAC_BASED E_Evpn_EsiType = 4
// Evpn_EsiType_TYPE_4_ROUTER_ID_BASED corresponds to the value TYPE_4_ROUTER_ID_BASED of Evpn_EsiType
Evpn_EsiType_TYPE_4_ROUTER_ID_BASED E_Evpn_EsiType = 5
// Evpn_EsiType_TYPE_5_AS_BASED corresponds to the value TYPE_5_AS_BASED of Evpn_EsiType
Evpn_EsiType_TYPE_5_AS_BASED E_Evpn_EsiType = 6
)

// E_Evpn_LearningMode is a derived int64 type which is used to represent
// the enumerated node Evpn_LearningMode. An additional value named
// Evpn_LearningMode_UNSET is added to the enumeration which is used as
Expand Down Expand Up @@ -10583,26 +10457,30 @@ const (
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 10
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP28 corresponds to the value QSFP28 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP28 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 11
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56 corresponds to the value QSFP56 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 12
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD corresponds to the value QSFP56_DD of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 13
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD_TYPE1 corresponds to the value QSFP56_DD_TYPE1 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD_TYPE1 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 12
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD_TYPE1 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 14
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD_TYPE2 corresponds to the value QSFP56_DD_TYPE2 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD_TYPE2 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 13
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP56_DD_TYPE2 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 15
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP_PLUS corresponds to the value QSFP_PLUS of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP_PLUS E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 14
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_QSFP_PLUS E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 16
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP corresponds to the value SFP of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 15
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 17
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP28 corresponds to the value SFP28 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP28 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 16
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP28 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 18
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP56 corresponds to the value SFP56 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP56 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 17
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP56 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 19
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP_DD corresponds to the value SFP_DD of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP_DD E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 18
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP_DD E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 20
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP_PLUS corresponds to the value SFP_PLUS of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP_PLUS E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 19
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_SFP_PLUS E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 21
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_X2 corresponds to the value X2 of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_X2 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 20
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_X2 E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 22
// TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_XFP corresponds to the value XFP of TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_XFP E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 21
TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_XFP E_TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE = 23
)

// E_TransportTypes_TRANSCEIVER_MODULE_FUNCTIONAL_TYPE is a derived int64 type which is used to represent
Expand Down
54 changes: 12 additions & 42 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,6 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
"E_DefaultMetric_Flags": {
1: {Name: "INTERNAL"},
},
"E_DfElection_DfElectionMethod": {
1: {Name: "DEFAULT"},
2: {Name: "HIGHEST_RANDOM_WEIGHT"},
3: {Name: "PREFERENCE"},
},
"E_Egress_IncomingLabel": {
1: {Name: "IPV4_EXPLICIT_NULL"},
2: {Name: "ROUTER_ALERT"},
Expand Down Expand Up @@ -396,9 +391,6 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
1: {Name: "STATIC"},
2: {Name: "DYNAMIC"},
},
"E_EthernetSegment_Esi": {
1: {Name: "AUTO"},
},
"E_Ethernet_ClientAls": {
1: {Name: "NONE"},
2: {Name: "LASER_SHUTDOWN"},
Expand All @@ -424,23 +416,11 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
"E_EvpnInstance_RouteDistinguisher": {
1: {Name: "AUTO"},
},
"E_EvpnTypes_EVPN_REDUNDANCY_MODE": {
1: {Name: "ALL_ACTIVE", DefiningModule: "openconfig-evpn-types"},
2: {Name: "SINGLE_ACTIVE", DefiningModule: "openconfig-evpn-types"},
},
"E_EvpnTypes_EVPN_TYPE": {
1: {Name: "VLAN_AWARE", DefiningModule: "openconfig-evpn-types"},
2: {Name: "VLAN_BASED", DefiningModule: "openconfig-evpn-types"},
3: {Name: "VLAN_BUNDLE", DefiningModule: "openconfig-evpn-types"},
},
"E_Evpn_EsiType": {
1: {Name: "TYPE_0_OPERATOR_CONFIGURED"},
2: {Name: "TYPE_1_LACP_BASED"},
3: {Name: "TYPE_2_BRIDGE_PROTOCOL_BASED"},
4: {Name: "TYPE_3_MAC_BASED"},
5: {Name: "TYPE_4_ROUTER_ID_BASED"},
6: {Name: "TYPE_5_AS_BASED"},
},
"E_Evpn_LearningMode": {
1: {Name: "CONTROL_PLANE"},
2: {Name: "DATA_PLANE"},
Expand Down Expand Up @@ -2283,16 +2263,18 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
9: {Name: "OTHER", DefiningModule: "openconfig-transport-types"},
10: {Name: "QSFP", DefiningModule: "openconfig-transport-types"},
11: {Name: "QSFP28", DefiningModule: "openconfig-transport-types"},
12: {Name: "QSFP56_DD_TYPE1", DefiningModule: "openconfig-transport-types"},
13: {Name: "QSFP56_DD_TYPE2", DefiningModule: "openconfig-transport-types"},
14: {Name: "QSFP_PLUS", DefiningModule: "openconfig-transport-types"},
15: {Name: "SFP", DefiningModule: "openconfig-transport-types"},
16: {Name: "SFP28", DefiningModule: "openconfig-transport-types"},
17: {Name: "SFP56", DefiningModule: "openconfig-transport-types"},
18: {Name: "SFP_DD", DefiningModule: "openconfig-transport-types"},
19: {Name: "SFP_PLUS", DefiningModule: "openconfig-transport-types"},
20: {Name: "X2", DefiningModule: "openconfig-transport-types"},
21: {Name: "XFP", DefiningModule: "openconfig-transport-types"},
12: {Name: "QSFP56", DefiningModule: "openconfig-transport-types"},
13: {Name: "QSFP56_DD", DefiningModule: "openconfig-transport-types"},
14: {Name: "QSFP56_DD_TYPE1", DefiningModule: "openconfig-transport-types"},
15: {Name: "QSFP56_DD_TYPE2", DefiningModule: "openconfig-transport-types"},
16: {Name: "QSFP_PLUS", DefiningModule: "openconfig-transport-types"},
17: {Name: "SFP", DefiningModule: "openconfig-transport-types"},
18: {Name: "SFP28", DefiningModule: "openconfig-transport-types"},
19: {Name: "SFP56", DefiningModule: "openconfig-transport-types"},
20: {Name: "SFP_DD", DefiningModule: "openconfig-transport-types"},
21: {Name: "SFP_PLUS", DefiningModule: "openconfig-transport-types"},
22: {Name: "X2", DefiningModule: "openconfig-transport-types"},
23: {Name: "XFP", DefiningModule: "openconfig-transport-types"},
},
"E_TransportTypes_TRANSCEIVER_MODULE_FUNCTIONAL_TYPE": {
1: {Name: "TYPE_DIGITAL_COHERENT_OPTIC", DefiningModule: "openconfig-transport-types"},
Expand Down Expand Up @@ -2813,18 +2795,6 @@ func initΛEnumTypes() {
"/network-instances/network-instance/encapsulation/state/label-allocation-mode": {
reflect.TypeOf((E_NetworkInstanceTypes_LABEL_ALLOCATION_MODE)(0)),
},
"/network-instances/network-instance/evpn/ethernet-segments/ethernet-segment/df-election/state/df-election-method": {
reflect.TypeOf((E_DfElection_DfElectionMethod)(0)),
},
"/network-instances/network-instance/evpn/ethernet-segments/ethernet-segment/state/esi": {
reflect.TypeOf((E_EthernetSegment_Esi)(0)),
},
"/network-instances/network-instance/evpn/ethernet-segments/ethernet-segment/state/esi-type": {
reflect.TypeOf((E_Evpn_EsiType)(0)),
},
"/network-instances/network-instance/evpn/ethernet-segments/ethernet-segment/state/redundancy-mode": {
reflect.TypeOf((E_EvpnTypes_EVPN_REDUNDANCY_MODE)(0)),
},
"/network-instances/network-instance/evpn/evpn-instances/evpn-instance/import-export-policy/state/export-route-target": {
reflect.TypeOf((E_ImportExportPolicy_ExportRouteTarget)(0)),
},
Expand Down
Loading

0 comments on commit 2fd9deb

Please sign in to comment.