How to use Drop method of protect Package

Best Selenoid code snippet using protect.Drop

mpls_oam_oper.go

Source:mpls_oam_oper.go Github

copy

Full Screen

...354 // UDP header error.355 ReceivedErrorUdpHeader MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorUdpHeader356 // RUNT error.357 ReceivedErrorRunt MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorRunt358 // Dropped queue full.359 ReceivedErrorQueueFull MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorQueueFull360 // General error.361 ReceivedErrorGeneral MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorGeneral362 // Error no Interfaces.363 ReceivedErrorNoInterface MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoInterface364 // Error no memory.365 ReceivedErrorNoMemory MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoMemory366 // Protect Protocol Received good request.367 ProtectProtocolReceivedGoodRequest MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodRequest368 // Protect Protocol Received good reply.369 ProtectProtocolReceivedGoodReply MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodReply370 // Received Reqeust with BFD TLV.371 ReceivedGoodBfdRequest MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdRequest372 // Received Reply with BFD TLV.373 ReceivedGoodBfdReply MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdReply374}375func (received *MplsOam_Interface_Details_Detail_PacketStatistics_Received) GetEntityData() *types.CommonEntityData {376 received.EntityData.YFilter = received.YFilter377 received.EntityData.YangName = "received"378 received.EntityData.BundleName = "cisco_ios_xr"379 received.EntityData.ParentYangName = "packet-statistics"380 received.EntityData.SegmentPath = "received"381 received.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/" + received.EntityData.SegmentPath382 received.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()383 received.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()384 received.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()385 received.EntityData.Children = types.NewOrderedMap()386 received.EntityData.Children.Append("received-good-request", types.YChild{"ReceivedGoodRequest", &received.ReceivedGoodRequest})387 received.EntityData.Children.Append("received-good-reply", types.YChild{"ReceivedGoodReply", &received.ReceivedGoodReply})388 received.EntityData.Children.Append("received-unknown", types.YChild{"ReceivedUnknown", &received.ReceivedUnknown})389 received.EntityData.Children.Append("received-error-ip-header", types.YChild{"ReceivedErrorIpHeader", &received.ReceivedErrorIpHeader})390 received.EntityData.Children.Append("received-error-udp-header", types.YChild{"ReceivedErrorUdpHeader", &received.ReceivedErrorUdpHeader})391 received.EntityData.Children.Append("received-error-runt", types.YChild{"ReceivedErrorRunt", &received.ReceivedErrorRunt})392 received.EntityData.Children.Append("received-error-queue-full", types.YChild{"ReceivedErrorQueueFull", &received.ReceivedErrorQueueFull})393 received.EntityData.Children.Append("received-error-general", types.YChild{"ReceivedErrorGeneral", &received.ReceivedErrorGeneral})394 received.EntityData.Children.Append("received-error-no-interface", types.YChild{"ReceivedErrorNoInterface", &received.ReceivedErrorNoInterface})395 received.EntityData.Children.Append("received-error-no-memory", types.YChild{"ReceivedErrorNoMemory", &received.ReceivedErrorNoMemory})396 received.EntityData.Children.Append("protect-protocol-received-good-request", types.YChild{"ProtectProtocolReceivedGoodRequest", &received.ProtectProtocolReceivedGoodRequest})397 received.EntityData.Children.Append("protect-protocol-received-good-reply", types.YChild{"ProtectProtocolReceivedGoodReply", &received.ProtectProtocolReceivedGoodReply})398 received.EntityData.Children.Append("received-good-bfd-request", types.YChild{"ReceivedGoodBfdRequest", &received.ReceivedGoodBfdRequest})399 received.EntityData.Children.Append("received-good-bfd-reply", types.YChild{"ReceivedGoodBfdReply", &received.ReceivedGoodBfdReply})400 received.EntityData.Leafs = types.NewOrderedMap()401 received.EntityData.YListKeys = []string {}402 return &(received.EntityData)403}404// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodRequest405// Received good request406type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodRequest struct {407 EntityData types.CommonEntityData408 YFilter yfilter.YFilter409 // Packet counter. The type is interface{} with range:410 // 0..18446744073709551615.411 Packets interface{}412 // Byte counter. The type is interface{} with range: 0..18446744073709551615.413 // Units are byte.414 Bytes interface{}415}416func (receivedGoodRequest *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodRequest) GetEntityData() *types.CommonEntityData {417 receivedGoodRequest.EntityData.YFilter = receivedGoodRequest.YFilter418 receivedGoodRequest.EntityData.YangName = "received-good-request"419 receivedGoodRequest.EntityData.BundleName = "cisco_ios_xr"420 receivedGoodRequest.EntityData.ParentYangName = "received"421 receivedGoodRequest.EntityData.SegmentPath = "received-good-request"422 receivedGoodRequest.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedGoodRequest.EntityData.SegmentPath423 receivedGoodRequest.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()424 receivedGoodRequest.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()425 receivedGoodRequest.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()426 receivedGoodRequest.EntityData.Children = types.NewOrderedMap()427 receivedGoodRequest.EntityData.Leafs = types.NewOrderedMap()428 receivedGoodRequest.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodRequest.Packets})429 receivedGoodRequest.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodRequest.Bytes})430 receivedGoodRequest.EntityData.YListKeys = []string {}431 return &(receivedGoodRequest.EntityData)432}433// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodReply434// Received good reply435type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodReply struct {436 EntityData types.CommonEntityData437 YFilter yfilter.YFilter438 // Packet counter. The type is interface{} with range:439 // 0..18446744073709551615.440 Packets interface{}441 // Byte counter. The type is interface{} with range: 0..18446744073709551615.442 // Units are byte.443 Bytes interface{}444}445func (receivedGoodReply *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodReply) GetEntityData() *types.CommonEntityData {446 receivedGoodReply.EntityData.YFilter = receivedGoodReply.YFilter447 receivedGoodReply.EntityData.YangName = "received-good-reply"448 receivedGoodReply.EntityData.BundleName = "cisco_ios_xr"449 receivedGoodReply.EntityData.ParentYangName = "received"450 receivedGoodReply.EntityData.SegmentPath = "received-good-reply"451 receivedGoodReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedGoodReply.EntityData.SegmentPath452 receivedGoodReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()453 receivedGoodReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()454 receivedGoodReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()455 receivedGoodReply.EntityData.Children = types.NewOrderedMap()456 receivedGoodReply.EntityData.Leafs = types.NewOrderedMap()457 receivedGoodReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodReply.Packets})458 receivedGoodReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodReply.Bytes})459 receivedGoodReply.EntityData.YListKeys = []string {}460 return &(receivedGoodReply.EntityData)461}462// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedUnknown463// Received unknown packets464type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedUnknown struct {465 EntityData types.CommonEntityData466 YFilter yfilter.YFilter467 // Packet counter. The type is interface{} with range:468 // 0..18446744073709551615.469 Packets interface{}470 // Byte counter. The type is interface{} with range: 0..18446744073709551615.471 // Units are byte.472 Bytes interface{}473}474func (receivedUnknown *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedUnknown) GetEntityData() *types.CommonEntityData {475 receivedUnknown.EntityData.YFilter = receivedUnknown.YFilter476 receivedUnknown.EntityData.YangName = "received-unknown"477 receivedUnknown.EntityData.BundleName = "cisco_ios_xr"478 receivedUnknown.EntityData.ParentYangName = "received"479 receivedUnknown.EntityData.SegmentPath = "received-unknown"480 receivedUnknown.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedUnknown.EntityData.SegmentPath481 receivedUnknown.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()482 receivedUnknown.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()483 receivedUnknown.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()484 receivedUnknown.EntityData.Children = types.NewOrderedMap()485 receivedUnknown.EntityData.Leafs = types.NewOrderedMap()486 receivedUnknown.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedUnknown.Packets})487 receivedUnknown.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedUnknown.Bytes})488 receivedUnknown.EntityData.YListKeys = []string {}489 return &(receivedUnknown.EntityData)490}491// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorIpHeader492// IP header error493type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorIpHeader struct {494 EntityData types.CommonEntityData495 YFilter yfilter.YFilter496 // Packet counter. The type is interface{} with range:497 // 0..18446744073709551615.498 Packets interface{}499 // Byte counter. The type is interface{} with range: 0..18446744073709551615.500 // Units are byte.501 Bytes interface{}502}503func (receivedErrorIpHeader *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorIpHeader) GetEntityData() *types.CommonEntityData {504 receivedErrorIpHeader.EntityData.YFilter = receivedErrorIpHeader.YFilter505 receivedErrorIpHeader.EntityData.YangName = "received-error-ip-header"506 receivedErrorIpHeader.EntityData.BundleName = "cisco_ios_xr"507 receivedErrorIpHeader.EntityData.ParentYangName = "received"508 receivedErrorIpHeader.EntityData.SegmentPath = "received-error-ip-header"509 receivedErrorIpHeader.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorIpHeader.EntityData.SegmentPath510 receivedErrorIpHeader.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()511 receivedErrorIpHeader.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()512 receivedErrorIpHeader.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()513 receivedErrorIpHeader.EntityData.Children = types.NewOrderedMap()514 receivedErrorIpHeader.EntityData.Leafs = types.NewOrderedMap()515 receivedErrorIpHeader.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorIpHeader.Packets})516 receivedErrorIpHeader.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorIpHeader.Bytes})517 receivedErrorIpHeader.EntityData.YListKeys = []string {}518 return &(receivedErrorIpHeader.EntityData)519}520// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorUdpHeader521// UDP header error522type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorUdpHeader struct {523 EntityData types.CommonEntityData524 YFilter yfilter.YFilter525 // Packet counter. The type is interface{} with range:526 // 0..18446744073709551615.527 Packets interface{}528 // Byte counter. The type is interface{} with range: 0..18446744073709551615.529 // Units are byte.530 Bytes interface{}531}532func (receivedErrorUdpHeader *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorUdpHeader) GetEntityData() *types.CommonEntityData {533 receivedErrorUdpHeader.EntityData.YFilter = receivedErrorUdpHeader.YFilter534 receivedErrorUdpHeader.EntityData.YangName = "received-error-udp-header"535 receivedErrorUdpHeader.EntityData.BundleName = "cisco_ios_xr"536 receivedErrorUdpHeader.EntityData.ParentYangName = "received"537 receivedErrorUdpHeader.EntityData.SegmentPath = "received-error-udp-header"538 receivedErrorUdpHeader.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorUdpHeader.EntityData.SegmentPath539 receivedErrorUdpHeader.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()540 receivedErrorUdpHeader.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()541 receivedErrorUdpHeader.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()542 receivedErrorUdpHeader.EntityData.Children = types.NewOrderedMap()543 receivedErrorUdpHeader.EntityData.Leafs = types.NewOrderedMap()544 receivedErrorUdpHeader.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorUdpHeader.Packets})545 receivedErrorUdpHeader.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorUdpHeader.Bytes})546 receivedErrorUdpHeader.EntityData.YListKeys = []string {}547 return &(receivedErrorUdpHeader.EntityData)548}549// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorRunt550// RUNT error551type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorRunt struct {552 EntityData types.CommonEntityData553 YFilter yfilter.YFilter554 // Packet counter. The type is interface{} with range:555 // 0..18446744073709551615.556 Packets interface{}557 // Byte counter. The type is interface{} with range: 0..18446744073709551615.558 // Units are byte.559 Bytes interface{}560}561func (receivedErrorRunt *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorRunt) GetEntityData() *types.CommonEntityData {562 receivedErrorRunt.EntityData.YFilter = receivedErrorRunt.YFilter563 receivedErrorRunt.EntityData.YangName = "received-error-runt"564 receivedErrorRunt.EntityData.BundleName = "cisco_ios_xr"565 receivedErrorRunt.EntityData.ParentYangName = "received"566 receivedErrorRunt.EntityData.SegmentPath = "received-error-runt"567 receivedErrorRunt.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorRunt.EntityData.SegmentPath568 receivedErrorRunt.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()569 receivedErrorRunt.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()570 receivedErrorRunt.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()571 receivedErrorRunt.EntityData.Children = types.NewOrderedMap()572 receivedErrorRunt.EntityData.Leafs = types.NewOrderedMap()573 receivedErrorRunt.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorRunt.Packets})574 receivedErrorRunt.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorRunt.Bytes})575 receivedErrorRunt.EntityData.YListKeys = []string {}576 return &(receivedErrorRunt.EntityData)577}578// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorQueueFull579// Dropped queue full580type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorQueueFull struct {581 EntityData types.CommonEntityData582 YFilter yfilter.YFilter583 // Packet counter. The type is interface{} with range:584 // 0..18446744073709551615.585 Packets interface{}586 // Byte counter. The type is interface{} with range: 0..18446744073709551615.587 // Units are byte.588 Bytes interface{}589}590func (receivedErrorQueueFull *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorQueueFull) GetEntityData() *types.CommonEntityData {591 receivedErrorQueueFull.EntityData.YFilter = receivedErrorQueueFull.YFilter592 receivedErrorQueueFull.EntityData.YangName = "received-error-queue-full"593 receivedErrorQueueFull.EntityData.BundleName = "cisco_ios_xr"594 receivedErrorQueueFull.EntityData.ParentYangName = "received"595 receivedErrorQueueFull.EntityData.SegmentPath = "received-error-queue-full"596 receivedErrorQueueFull.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorQueueFull.EntityData.SegmentPath597 receivedErrorQueueFull.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()598 receivedErrorQueueFull.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()599 receivedErrorQueueFull.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()600 receivedErrorQueueFull.EntityData.Children = types.NewOrderedMap()601 receivedErrorQueueFull.EntityData.Leafs = types.NewOrderedMap()602 receivedErrorQueueFull.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorQueueFull.Packets})603 receivedErrorQueueFull.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorQueueFull.Bytes})604 receivedErrorQueueFull.EntityData.YListKeys = []string {}605 return &(receivedErrorQueueFull.EntityData)606}607// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorGeneral608// General error609type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorGeneral struct {610 EntityData types.CommonEntityData611 YFilter yfilter.YFilter612 // Packet counter. The type is interface{} with range:613 // 0..18446744073709551615.614 Packets interface{}615 // Byte counter. The type is interface{} with range: 0..18446744073709551615.616 // Units are byte.617 Bytes interface{}618}619func (receivedErrorGeneral *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorGeneral) GetEntityData() *types.CommonEntityData {620 receivedErrorGeneral.EntityData.YFilter = receivedErrorGeneral.YFilter621 receivedErrorGeneral.EntityData.YangName = "received-error-general"622 receivedErrorGeneral.EntityData.BundleName = "cisco_ios_xr"623 receivedErrorGeneral.EntityData.ParentYangName = "received"624 receivedErrorGeneral.EntityData.SegmentPath = "received-error-general"625 receivedErrorGeneral.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorGeneral.EntityData.SegmentPath626 receivedErrorGeneral.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()627 receivedErrorGeneral.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()628 receivedErrorGeneral.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()629 receivedErrorGeneral.EntityData.Children = types.NewOrderedMap()630 receivedErrorGeneral.EntityData.Leafs = types.NewOrderedMap()631 receivedErrorGeneral.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorGeneral.Packets})632 receivedErrorGeneral.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorGeneral.Bytes})633 receivedErrorGeneral.EntityData.YListKeys = []string {}634 return &(receivedErrorGeneral.EntityData)635}636// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoInterface637// Error no Interfaces638type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoInterface struct {639 EntityData types.CommonEntityData640 YFilter yfilter.YFilter641 // Packet counter. The type is interface{} with range:642 // 0..18446744073709551615.643 Packets interface{}644 // Byte counter. The type is interface{} with range: 0..18446744073709551615.645 // Units are byte.646 Bytes interface{}647}648func (receivedErrorNoInterface *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoInterface) GetEntityData() *types.CommonEntityData {649 receivedErrorNoInterface.EntityData.YFilter = receivedErrorNoInterface.YFilter650 receivedErrorNoInterface.EntityData.YangName = "received-error-no-interface"651 receivedErrorNoInterface.EntityData.BundleName = "cisco_ios_xr"652 receivedErrorNoInterface.EntityData.ParentYangName = "received"653 receivedErrorNoInterface.EntityData.SegmentPath = "received-error-no-interface"654 receivedErrorNoInterface.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorNoInterface.EntityData.SegmentPath655 receivedErrorNoInterface.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()656 receivedErrorNoInterface.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()657 receivedErrorNoInterface.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()658 receivedErrorNoInterface.EntityData.Children = types.NewOrderedMap()659 receivedErrorNoInterface.EntityData.Leafs = types.NewOrderedMap()660 receivedErrorNoInterface.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorNoInterface.Packets})661 receivedErrorNoInterface.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorNoInterface.Bytes})662 receivedErrorNoInterface.EntityData.YListKeys = []string {}663 return &(receivedErrorNoInterface.EntityData)664}665// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoMemory666// Error no memory667type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoMemory struct {668 EntityData types.CommonEntityData669 YFilter yfilter.YFilter670 // Packet counter. The type is interface{} with range:671 // 0..18446744073709551615.672 Packets interface{}673 // Byte counter. The type is interface{} with range: 0..18446744073709551615.674 // Units are byte.675 Bytes interface{}676}677func (receivedErrorNoMemory *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedErrorNoMemory) GetEntityData() *types.CommonEntityData {678 receivedErrorNoMemory.EntityData.YFilter = receivedErrorNoMemory.YFilter679 receivedErrorNoMemory.EntityData.YangName = "received-error-no-memory"680 receivedErrorNoMemory.EntityData.BundleName = "cisco_ios_xr"681 receivedErrorNoMemory.EntityData.ParentYangName = "received"682 receivedErrorNoMemory.EntityData.SegmentPath = "received-error-no-memory"683 receivedErrorNoMemory.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedErrorNoMemory.EntityData.SegmentPath684 receivedErrorNoMemory.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()685 receivedErrorNoMemory.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()686 receivedErrorNoMemory.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()687 receivedErrorNoMemory.EntityData.Children = types.NewOrderedMap()688 receivedErrorNoMemory.EntityData.Leafs = types.NewOrderedMap()689 receivedErrorNoMemory.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorNoMemory.Packets})690 receivedErrorNoMemory.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorNoMemory.Bytes})691 receivedErrorNoMemory.EntityData.YListKeys = []string {}692 return &(receivedErrorNoMemory.EntityData)693}694// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodRequest695// Protect Protocol Received good request696type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodRequest struct {697 EntityData types.CommonEntityData698 YFilter yfilter.YFilter699 // Packet counter. The type is interface{} with range:700 // 0..18446744073709551615.701 Packets interface{}702 // Byte counter. The type is interface{} with range: 0..18446744073709551615.703 // Units are byte.704 Bytes interface{}705}706func (protectProtocolReceivedGoodRequest *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodRequest) GetEntityData() *types.CommonEntityData {707 protectProtocolReceivedGoodRequest.EntityData.YFilter = protectProtocolReceivedGoodRequest.YFilter708 protectProtocolReceivedGoodRequest.EntityData.YangName = "protect-protocol-received-good-request"709 protectProtocolReceivedGoodRequest.EntityData.BundleName = "cisco_ios_xr"710 protectProtocolReceivedGoodRequest.EntityData.ParentYangName = "received"711 protectProtocolReceivedGoodRequest.EntityData.SegmentPath = "protect-protocol-received-good-request"712 protectProtocolReceivedGoodRequest.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + protectProtocolReceivedGoodRequest.EntityData.SegmentPath713 protectProtocolReceivedGoodRequest.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()714 protectProtocolReceivedGoodRequest.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()715 protectProtocolReceivedGoodRequest.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()716 protectProtocolReceivedGoodRequest.EntityData.Children = types.NewOrderedMap()717 protectProtocolReceivedGoodRequest.EntityData.Leafs = types.NewOrderedMap()718 protectProtocolReceivedGoodRequest.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", protectProtocolReceivedGoodRequest.Packets})719 protectProtocolReceivedGoodRequest.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", protectProtocolReceivedGoodRequest.Bytes})720 protectProtocolReceivedGoodRequest.EntityData.YListKeys = []string {}721 return &(protectProtocolReceivedGoodRequest.EntityData)722}723// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodReply724// Protect Protocol Received good reply725type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodReply struct {726 EntityData types.CommonEntityData727 YFilter yfilter.YFilter728 // Packet counter. The type is interface{} with range:729 // 0..18446744073709551615.730 Packets interface{}731 // Byte counter. The type is interface{} with range: 0..18446744073709551615.732 // Units are byte.733 Bytes interface{}734}735func (protectProtocolReceivedGoodReply *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ProtectProtocolReceivedGoodReply) GetEntityData() *types.CommonEntityData {736 protectProtocolReceivedGoodReply.EntityData.YFilter = protectProtocolReceivedGoodReply.YFilter737 protectProtocolReceivedGoodReply.EntityData.YangName = "protect-protocol-received-good-reply"738 protectProtocolReceivedGoodReply.EntityData.BundleName = "cisco_ios_xr"739 protectProtocolReceivedGoodReply.EntityData.ParentYangName = "received"740 protectProtocolReceivedGoodReply.EntityData.SegmentPath = "protect-protocol-received-good-reply"741 protectProtocolReceivedGoodReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + protectProtocolReceivedGoodReply.EntityData.SegmentPath742 protectProtocolReceivedGoodReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()743 protectProtocolReceivedGoodReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()744 protectProtocolReceivedGoodReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()745 protectProtocolReceivedGoodReply.EntityData.Children = types.NewOrderedMap()746 protectProtocolReceivedGoodReply.EntityData.Leafs = types.NewOrderedMap()747 protectProtocolReceivedGoodReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", protectProtocolReceivedGoodReply.Packets})748 protectProtocolReceivedGoodReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", protectProtocolReceivedGoodReply.Bytes})749 protectProtocolReceivedGoodReply.EntityData.YListKeys = []string {}750 return &(protectProtocolReceivedGoodReply.EntityData)751}752// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdRequest753// Received Reqeust with BFD TLV754type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdRequest struct {755 EntityData types.CommonEntityData756 YFilter yfilter.YFilter757 // Packet counter. The type is interface{} with range:758 // 0..18446744073709551615.759 Packets interface{}760 // Byte counter. The type is interface{} with range: 0..18446744073709551615.761 // Units are byte.762 Bytes interface{}763}764func (receivedGoodBfdRequest *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdRequest) GetEntityData() *types.CommonEntityData {765 receivedGoodBfdRequest.EntityData.YFilter = receivedGoodBfdRequest.YFilter766 receivedGoodBfdRequest.EntityData.YangName = "received-good-bfd-request"767 receivedGoodBfdRequest.EntityData.BundleName = "cisco_ios_xr"768 receivedGoodBfdRequest.EntityData.ParentYangName = "received"769 receivedGoodBfdRequest.EntityData.SegmentPath = "received-good-bfd-request"770 receivedGoodBfdRequest.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedGoodBfdRequest.EntityData.SegmentPath771 receivedGoodBfdRequest.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()772 receivedGoodBfdRequest.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()773 receivedGoodBfdRequest.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()774 receivedGoodBfdRequest.EntityData.Children = types.NewOrderedMap()775 receivedGoodBfdRequest.EntityData.Leafs = types.NewOrderedMap()776 receivedGoodBfdRequest.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodBfdRequest.Packets})777 receivedGoodBfdRequest.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodBfdRequest.Bytes})778 receivedGoodBfdRequest.EntityData.YListKeys = []string {}779 return &(receivedGoodBfdRequest.EntityData)780}781// MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdReply782// Received Reply with BFD TLV783type MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdReply struct {784 EntityData types.CommonEntityData785 YFilter yfilter.YFilter786 // Packet counter. The type is interface{} with range:787 // 0..18446744073709551615.788 Packets interface{}789 // Byte counter. The type is interface{} with range: 0..18446744073709551615.790 // Units are byte.791 Bytes interface{}792}793func (receivedGoodBfdReply *MplsOam_Interface_Details_Detail_PacketStatistics_Received_ReceivedGoodBfdReply) GetEntityData() *types.CommonEntityData {794 receivedGoodBfdReply.EntityData.YFilter = receivedGoodBfdReply.YFilter795 receivedGoodBfdReply.EntityData.YangName = "received-good-bfd-reply"796 receivedGoodBfdReply.EntityData.BundleName = "cisco_ios_xr"797 receivedGoodBfdReply.EntityData.ParentYangName = "received"798 receivedGoodBfdReply.EntityData.SegmentPath = "received-good-bfd-reply"799 receivedGoodBfdReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/received/" + receivedGoodBfdReply.EntityData.SegmentPath800 receivedGoodBfdReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()801 receivedGoodBfdReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()802 receivedGoodBfdReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()803 receivedGoodBfdReply.EntityData.Children = types.NewOrderedMap()804 receivedGoodBfdReply.EntityData.Leafs = types.NewOrderedMap()805 receivedGoodBfdReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodBfdReply.Packets})806 receivedGoodBfdReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodBfdReply.Bytes})807 receivedGoodBfdReply.EntityData.YListKeys = []string {}808 return &(receivedGoodBfdReply.EntityData)809}810// MplsOam_Interface_Details_Detail_PacketStatistics_Sent811// Packet transmit counts812type MplsOam_Interface_Details_Detail_PacketStatistics_Sent struct {813 EntityData types.CommonEntityData814 YFilter yfilter.YFilter815 // Transmit good packets.816 TransmitGood MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitGood817 // Transmit drop packets.818 TransmitDrop MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitDrop819 // Transmit good BFD request packets.820 TransmitBfdGood MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitBfdGood821 // No Reply action for echo reqeust of BFD bootstrap.822 BfdNoReply MplsOam_Interface_Details_Detail_PacketStatistics_Sent_BfdNoReply823}824func (sent *MplsOam_Interface_Details_Detail_PacketStatistics_Sent) GetEntityData() *types.CommonEntityData {825 sent.EntityData.YFilter = sent.YFilter826 sent.EntityData.YangName = "sent"827 sent.EntityData.BundleName = "cisco_ios_xr"828 sent.EntityData.ParentYangName = "packet-statistics"829 sent.EntityData.SegmentPath = "sent"830 sent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/" + sent.EntityData.SegmentPath831 sent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()832 sent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()833 sent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()834 sent.EntityData.Children = types.NewOrderedMap()835 sent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &sent.TransmitGood})836 sent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &sent.TransmitDrop})837 sent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &sent.TransmitBfdGood})838 sent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &sent.BfdNoReply})839 sent.EntityData.Leafs = types.NewOrderedMap()840 sent.EntityData.YListKeys = []string {}841 return &(sent.EntityData)842}843// MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitGood844// Transmit good packets845type MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitGood struct {846 EntityData types.CommonEntityData847 YFilter yfilter.YFilter848 // Packet counter. The type is interface{} with range:849 // 0..18446744073709551615.850 Packets interface{}851 // Byte counter. The type is interface{} with range: 0..18446744073709551615.852 // Units are byte.853 Bytes interface{}854}855func (transmitGood *MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitGood) GetEntityData() *types.CommonEntityData {856 transmitGood.EntityData.YFilter = transmitGood.YFilter857 transmitGood.EntityData.YangName = "transmit-good"858 transmitGood.EntityData.BundleName = "cisco_ios_xr"859 transmitGood.EntityData.ParentYangName = "sent"860 transmitGood.EntityData.SegmentPath = "transmit-good"861 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/sent/" + transmitGood.EntityData.SegmentPath862 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()863 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()864 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()865 transmitGood.EntityData.Children = types.NewOrderedMap()866 transmitGood.EntityData.Leafs = types.NewOrderedMap()867 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})868 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})869 transmitGood.EntityData.YListKeys = []string {}870 return &(transmitGood.EntityData)871}872// MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitDrop873// Transmit drop packets874type MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitDrop struct {875 EntityData types.CommonEntityData876 YFilter yfilter.YFilter877 // Packet counter. The type is interface{} with range:878 // 0..18446744073709551615.879 Packets interface{}880 // Byte counter. The type is interface{} with range: 0..18446744073709551615.881 // Units are byte.882 Bytes interface{}883}884func (transmitDrop *MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitDrop) GetEntityData() *types.CommonEntityData {885 transmitDrop.EntityData.YFilter = transmitDrop.YFilter886 transmitDrop.EntityData.YangName = "transmit-drop"887 transmitDrop.EntityData.BundleName = "cisco_ios_xr"888 transmitDrop.EntityData.ParentYangName = "sent"889 transmitDrop.EntityData.SegmentPath = "transmit-drop"890 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/sent/" + transmitDrop.EntityData.SegmentPath891 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()892 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()893 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()894 transmitDrop.EntityData.Children = types.NewOrderedMap()895 transmitDrop.EntityData.Leafs = types.NewOrderedMap()896 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})897 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})898 transmitDrop.EntityData.YListKeys = []string {}899 return &(transmitDrop.EntityData)900}901// MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitBfdGood902// Transmit good BFD request packets903type MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitBfdGood struct {904 EntityData types.CommonEntityData905 YFilter yfilter.YFilter906 // Packet counter. The type is interface{} with range:907 // 0..18446744073709551615.908 Packets interface{}909 // Byte counter. The type is interface{} with range: 0..18446744073709551615.910 // Units are byte.911 Bytes interface{}912}913func (transmitBfdGood *MplsOam_Interface_Details_Detail_PacketStatistics_Sent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {914 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter915 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"916 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"917 transmitBfdGood.EntityData.ParentYangName = "sent"918 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"919 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/sent/" + transmitBfdGood.EntityData.SegmentPath920 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()921 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()922 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()923 transmitBfdGood.EntityData.Children = types.NewOrderedMap()924 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()925 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})926 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})927 transmitBfdGood.EntityData.YListKeys = []string {}928 return &(transmitBfdGood.EntityData)929}930// MplsOam_Interface_Details_Detail_PacketStatistics_Sent_BfdNoReply931// No Reply action for echo reqeust of BFD932// bootstrap933type MplsOam_Interface_Details_Detail_PacketStatistics_Sent_BfdNoReply struct {934 EntityData types.CommonEntityData935 YFilter yfilter.YFilter936 // Packet counter. The type is interface{} with range:937 // 0..18446744073709551615.938 Packets interface{}939 // Byte counter. The type is interface{} with range: 0..18446744073709551615.940 // Units are byte.941 Bytes interface{}942}943func (bfdNoReply *MplsOam_Interface_Details_Detail_PacketStatistics_Sent_BfdNoReply) GetEntityData() *types.CommonEntityData {944 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter945 bfdNoReply.EntityData.YangName = "bfd-no-reply"946 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"947 bfdNoReply.EntityData.ParentYangName = "sent"948 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"949 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/sent/" + bfdNoReply.EntityData.SegmentPath950 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()951 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()952 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()953 bfdNoReply.EntityData.Children = types.NewOrderedMap()954 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()955 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})956 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})957 bfdNoReply.EntityData.YListKeys = []string {}958 return &(bfdNoReply.EntityData)959}960// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent961// Working Request Packet transmit counts962type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent struct {963 EntityData types.CommonEntityData964 YFilter yfilter.YFilter965 // Transmit good packets.966 TransmitGood MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitGood967 // Transmit drop packets.968 TransmitDrop MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitDrop969 // Transmit good BFD request packets.970 TransmitBfdGood MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitBfdGood971 // No Reply action for echo reqeust of BFD bootstrap.972 BfdNoReply MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_BfdNoReply973}974func (workingReqSent *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent) GetEntityData() *types.CommonEntityData {975 workingReqSent.EntityData.YFilter = workingReqSent.YFilter976 workingReqSent.EntityData.YangName = "working-req-sent"977 workingReqSent.EntityData.BundleName = "cisco_ios_xr"978 workingReqSent.EntityData.ParentYangName = "packet-statistics"979 workingReqSent.EntityData.SegmentPath = "working-req-sent"980 workingReqSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/" + workingReqSent.EntityData.SegmentPath981 workingReqSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()982 workingReqSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()983 workingReqSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()984 workingReqSent.EntityData.Children = types.NewOrderedMap()985 workingReqSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &workingReqSent.TransmitGood})986 workingReqSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &workingReqSent.TransmitDrop})987 workingReqSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &workingReqSent.TransmitBfdGood})988 workingReqSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &workingReqSent.BfdNoReply})989 workingReqSent.EntityData.Leafs = types.NewOrderedMap()990 workingReqSent.EntityData.YListKeys = []string {}991 return &(workingReqSent.EntityData)992}993// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitGood994// Transmit good packets995type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitGood struct {996 EntityData types.CommonEntityData997 YFilter yfilter.YFilter998 // Packet counter. The type is interface{} with range:999 // 0..18446744073709551615.1000 Packets interface{}1001 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1002 // Units are byte.1003 Bytes interface{}1004}1005func (transmitGood *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitGood) GetEntityData() *types.CommonEntityData {1006 transmitGood.EntityData.YFilter = transmitGood.YFilter1007 transmitGood.EntityData.YangName = "transmit-good"1008 transmitGood.EntityData.BundleName = "cisco_ios_xr"1009 transmitGood.EntityData.ParentYangName = "working-req-sent"1010 transmitGood.EntityData.SegmentPath = "transmit-good"1011 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-req-sent/" + transmitGood.EntityData.SegmentPath1012 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1013 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1014 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1015 transmitGood.EntityData.Children = types.NewOrderedMap()1016 transmitGood.EntityData.Leafs = types.NewOrderedMap()1017 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})1018 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})1019 transmitGood.EntityData.YListKeys = []string {}1020 return &(transmitGood.EntityData)1021}1022// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitDrop1023// Transmit drop packets1024type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitDrop struct {1025 EntityData types.CommonEntityData1026 YFilter yfilter.YFilter1027 // Packet counter. The type is interface{} with range:1028 // 0..18446744073709551615.1029 Packets interface{}1030 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1031 // Units are byte.1032 Bytes interface{}1033}1034func (transmitDrop *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitDrop) GetEntityData() *types.CommonEntityData {1035 transmitDrop.EntityData.YFilter = transmitDrop.YFilter1036 transmitDrop.EntityData.YangName = "transmit-drop"1037 transmitDrop.EntityData.BundleName = "cisco_ios_xr"1038 transmitDrop.EntityData.ParentYangName = "working-req-sent"1039 transmitDrop.EntityData.SegmentPath = "transmit-drop"1040 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-req-sent/" + transmitDrop.EntityData.SegmentPath1041 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1042 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1043 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1044 transmitDrop.EntityData.Children = types.NewOrderedMap()1045 transmitDrop.EntityData.Leafs = types.NewOrderedMap()1046 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})1047 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})1048 transmitDrop.EntityData.YListKeys = []string {}1049 return &(transmitDrop.EntityData)1050}1051// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitBfdGood1052// Transmit good BFD request packets1053type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitBfdGood struct {1054 EntityData types.CommonEntityData1055 YFilter yfilter.YFilter1056 // Packet counter. The type is interface{} with range:1057 // 0..18446744073709551615.1058 Packets interface{}1059 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1060 // Units are byte.1061 Bytes interface{}1062}1063func (transmitBfdGood *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {1064 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter1065 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"1066 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"1067 transmitBfdGood.EntityData.ParentYangName = "working-req-sent"1068 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"1069 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-req-sent/" + transmitBfdGood.EntityData.SegmentPath1070 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1071 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1072 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1073 transmitBfdGood.EntityData.Children = types.NewOrderedMap()1074 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()1075 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})1076 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})1077 transmitBfdGood.EntityData.YListKeys = []string {}1078 return &(transmitBfdGood.EntityData)1079}1080// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_BfdNoReply1081// No Reply action for echo reqeust of BFD1082// bootstrap1083type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_BfdNoReply struct {1084 EntityData types.CommonEntityData1085 YFilter yfilter.YFilter1086 // Packet counter. The type is interface{} with range:1087 // 0..18446744073709551615.1088 Packets interface{}1089 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1090 // Units are byte.1091 Bytes interface{}1092}1093func (bfdNoReply *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingReqSent_BfdNoReply) GetEntityData() *types.CommonEntityData {1094 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter1095 bfdNoReply.EntityData.YangName = "bfd-no-reply"1096 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"1097 bfdNoReply.EntityData.ParentYangName = "working-req-sent"1098 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"1099 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-req-sent/" + bfdNoReply.EntityData.SegmentPath1100 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1101 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1102 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1103 bfdNoReply.EntityData.Children = types.NewOrderedMap()1104 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()1105 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})1106 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})1107 bfdNoReply.EntityData.YListKeys = []string {}1108 return &(bfdNoReply.EntityData)1109}1110// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent1111// Working Reply Packet transmit counts1112type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent struct {1113 EntityData types.CommonEntityData1114 YFilter yfilter.YFilter1115 // Transmit good packets.1116 TransmitGood MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitGood1117 // Transmit drop packets.1118 TransmitDrop MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitDrop1119 // Transmit good BFD request packets.1120 TransmitBfdGood MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitBfdGood1121 // No Reply action for echo reqeust of BFD bootstrap.1122 BfdNoReply MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_BfdNoReply1123}1124func (workingRepSent *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent) GetEntityData() *types.CommonEntityData {1125 workingRepSent.EntityData.YFilter = workingRepSent.YFilter1126 workingRepSent.EntityData.YangName = "working-rep-sent"1127 workingRepSent.EntityData.BundleName = "cisco_ios_xr"1128 workingRepSent.EntityData.ParentYangName = "packet-statistics"1129 workingRepSent.EntityData.SegmentPath = "working-rep-sent"1130 workingRepSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/" + workingRepSent.EntityData.SegmentPath1131 workingRepSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1132 workingRepSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1133 workingRepSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1134 workingRepSent.EntityData.Children = types.NewOrderedMap()1135 workingRepSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &workingRepSent.TransmitGood})1136 workingRepSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &workingRepSent.TransmitDrop})1137 workingRepSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &workingRepSent.TransmitBfdGood})1138 workingRepSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &workingRepSent.BfdNoReply})1139 workingRepSent.EntityData.Leafs = types.NewOrderedMap()1140 workingRepSent.EntityData.YListKeys = []string {}1141 return &(workingRepSent.EntityData)1142}1143// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitGood1144// Transmit good packets1145type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitGood struct {1146 EntityData types.CommonEntityData1147 YFilter yfilter.YFilter1148 // Packet counter. The type is interface{} with range:1149 // 0..18446744073709551615.1150 Packets interface{}1151 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1152 // Units are byte.1153 Bytes interface{}1154}1155func (transmitGood *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitGood) GetEntityData() *types.CommonEntityData {1156 transmitGood.EntityData.YFilter = transmitGood.YFilter1157 transmitGood.EntityData.YangName = "transmit-good"1158 transmitGood.EntityData.BundleName = "cisco_ios_xr"1159 transmitGood.EntityData.ParentYangName = "working-rep-sent"1160 transmitGood.EntityData.SegmentPath = "transmit-good"1161 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-rep-sent/" + transmitGood.EntityData.SegmentPath1162 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1163 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1164 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1165 transmitGood.EntityData.Children = types.NewOrderedMap()1166 transmitGood.EntityData.Leafs = types.NewOrderedMap()1167 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})1168 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})1169 transmitGood.EntityData.YListKeys = []string {}1170 return &(transmitGood.EntityData)1171}1172// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitDrop1173// Transmit drop packets1174type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitDrop struct {1175 EntityData types.CommonEntityData1176 YFilter yfilter.YFilter1177 // Packet counter. The type is interface{} with range:1178 // 0..18446744073709551615.1179 Packets interface{}1180 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1181 // Units are byte.1182 Bytes interface{}1183}1184func (transmitDrop *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitDrop) GetEntityData() *types.CommonEntityData {1185 transmitDrop.EntityData.YFilter = transmitDrop.YFilter1186 transmitDrop.EntityData.YangName = "transmit-drop"1187 transmitDrop.EntityData.BundleName = "cisco_ios_xr"1188 transmitDrop.EntityData.ParentYangName = "working-rep-sent"1189 transmitDrop.EntityData.SegmentPath = "transmit-drop"1190 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-rep-sent/" + transmitDrop.EntityData.SegmentPath1191 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1192 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1193 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1194 transmitDrop.EntityData.Children = types.NewOrderedMap()1195 transmitDrop.EntityData.Leafs = types.NewOrderedMap()1196 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})1197 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})1198 transmitDrop.EntityData.YListKeys = []string {}1199 return &(transmitDrop.EntityData)1200}1201// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitBfdGood1202// Transmit good BFD request packets1203type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitBfdGood struct {1204 EntityData types.CommonEntityData1205 YFilter yfilter.YFilter1206 // Packet counter. The type is interface{} with range:1207 // 0..18446744073709551615.1208 Packets interface{}1209 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1210 // Units are byte.1211 Bytes interface{}1212}1213func (transmitBfdGood *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {1214 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter1215 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"1216 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"1217 transmitBfdGood.EntityData.ParentYangName = "working-rep-sent"1218 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"1219 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-rep-sent/" + transmitBfdGood.EntityData.SegmentPath1220 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1221 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1222 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1223 transmitBfdGood.EntityData.Children = types.NewOrderedMap()1224 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()1225 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})1226 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})1227 transmitBfdGood.EntityData.YListKeys = []string {}1228 return &(transmitBfdGood.EntityData)1229}1230// MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_BfdNoReply1231// No Reply action for echo reqeust of BFD1232// bootstrap1233type MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_BfdNoReply struct {1234 EntityData types.CommonEntityData1235 YFilter yfilter.YFilter1236 // Packet counter. The type is interface{} with range:1237 // 0..18446744073709551615.1238 Packets interface{}1239 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1240 // Units are byte.1241 Bytes interface{}1242}1243func (bfdNoReply *MplsOam_Interface_Details_Detail_PacketStatistics_WorkingRepSent_BfdNoReply) GetEntityData() *types.CommonEntityData {1244 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter1245 bfdNoReply.EntityData.YangName = "bfd-no-reply"1246 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"1247 bfdNoReply.EntityData.ParentYangName = "working-rep-sent"1248 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"1249 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/working-rep-sent/" + bfdNoReply.EntityData.SegmentPath1250 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1251 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1252 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1253 bfdNoReply.EntityData.Children = types.NewOrderedMap()1254 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()1255 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})1256 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})1257 bfdNoReply.EntityData.YListKeys = []string {}1258 return &(bfdNoReply.EntityData)1259}1260// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent1261// Protect Request Packet transmit counts1262type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent struct {1263 EntityData types.CommonEntityData1264 YFilter yfilter.YFilter1265 // Transmit good packets.1266 TransmitGood MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitGood1267 // Transmit drop packets.1268 TransmitDrop MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitDrop1269 // Transmit good BFD request packets.1270 TransmitBfdGood MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitBfdGood1271 // No Reply action for echo reqeust of BFD bootstrap.1272 BfdNoReply MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_BfdNoReply1273}1274func (protectReqSent *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent) GetEntityData() *types.CommonEntityData {1275 protectReqSent.EntityData.YFilter = protectReqSent.YFilter1276 protectReqSent.EntityData.YangName = "protect-req-sent"1277 protectReqSent.EntityData.BundleName = "cisco_ios_xr"1278 protectReqSent.EntityData.ParentYangName = "packet-statistics"1279 protectReqSent.EntityData.SegmentPath = "protect-req-sent"1280 protectReqSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/" + protectReqSent.EntityData.SegmentPath1281 protectReqSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1282 protectReqSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1283 protectReqSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1284 protectReqSent.EntityData.Children = types.NewOrderedMap()1285 protectReqSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &protectReqSent.TransmitGood})1286 protectReqSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &protectReqSent.TransmitDrop})1287 protectReqSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &protectReqSent.TransmitBfdGood})1288 protectReqSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &protectReqSent.BfdNoReply})1289 protectReqSent.EntityData.Leafs = types.NewOrderedMap()1290 protectReqSent.EntityData.YListKeys = []string {}1291 return &(protectReqSent.EntityData)1292}1293// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitGood1294// Transmit good packets1295type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitGood struct {1296 EntityData types.CommonEntityData1297 YFilter yfilter.YFilter1298 // Packet counter. The type is interface{} with range:1299 // 0..18446744073709551615.1300 Packets interface{}1301 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1302 // Units are byte.1303 Bytes interface{}1304}1305func (transmitGood *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitGood) GetEntityData() *types.CommonEntityData {1306 transmitGood.EntityData.YFilter = transmitGood.YFilter1307 transmitGood.EntityData.YangName = "transmit-good"1308 transmitGood.EntityData.BundleName = "cisco_ios_xr"1309 transmitGood.EntityData.ParentYangName = "protect-req-sent"1310 transmitGood.EntityData.SegmentPath = "transmit-good"1311 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-req-sent/" + transmitGood.EntityData.SegmentPath1312 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1313 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1314 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1315 transmitGood.EntityData.Children = types.NewOrderedMap()1316 transmitGood.EntityData.Leafs = types.NewOrderedMap()1317 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})1318 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})1319 transmitGood.EntityData.YListKeys = []string {}1320 return &(transmitGood.EntityData)1321}1322// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitDrop1323// Transmit drop packets1324type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitDrop struct {1325 EntityData types.CommonEntityData1326 YFilter yfilter.YFilter1327 // Packet counter. The type is interface{} with range:1328 // 0..18446744073709551615.1329 Packets interface{}1330 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1331 // Units are byte.1332 Bytes interface{}1333}1334func (transmitDrop *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitDrop) GetEntityData() *types.CommonEntityData {1335 transmitDrop.EntityData.YFilter = transmitDrop.YFilter1336 transmitDrop.EntityData.YangName = "transmit-drop"1337 transmitDrop.EntityData.BundleName = "cisco_ios_xr"1338 transmitDrop.EntityData.ParentYangName = "protect-req-sent"1339 transmitDrop.EntityData.SegmentPath = "transmit-drop"1340 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-req-sent/" + transmitDrop.EntityData.SegmentPath1341 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1342 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1343 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1344 transmitDrop.EntityData.Children = types.NewOrderedMap()1345 transmitDrop.EntityData.Leafs = types.NewOrderedMap()1346 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})1347 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})1348 transmitDrop.EntityData.YListKeys = []string {}1349 return &(transmitDrop.EntityData)1350}1351// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitBfdGood1352// Transmit good BFD request packets1353type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitBfdGood struct {1354 EntityData types.CommonEntityData1355 YFilter yfilter.YFilter1356 // Packet counter. The type is interface{} with range:1357 // 0..18446744073709551615.1358 Packets interface{}1359 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1360 // Units are byte.1361 Bytes interface{}1362}1363func (transmitBfdGood *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {1364 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter1365 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"1366 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"1367 transmitBfdGood.EntityData.ParentYangName = "protect-req-sent"1368 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"1369 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-req-sent/" + transmitBfdGood.EntityData.SegmentPath1370 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1371 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1372 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1373 transmitBfdGood.EntityData.Children = types.NewOrderedMap()1374 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()1375 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})1376 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})1377 transmitBfdGood.EntityData.YListKeys = []string {}1378 return &(transmitBfdGood.EntityData)1379}1380// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_BfdNoReply1381// No Reply action for echo reqeust of BFD1382// bootstrap1383type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_BfdNoReply struct {1384 EntityData types.CommonEntityData1385 YFilter yfilter.YFilter1386 // Packet counter. The type is interface{} with range:1387 // 0..18446744073709551615.1388 Packets interface{}1389 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1390 // Units are byte.1391 Bytes interface{}1392}1393func (bfdNoReply *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectReqSent_BfdNoReply) GetEntityData() *types.CommonEntityData {1394 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter1395 bfdNoReply.EntityData.YangName = "bfd-no-reply"1396 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"1397 bfdNoReply.EntityData.ParentYangName = "protect-req-sent"1398 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"1399 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-req-sent/" + bfdNoReply.EntityData.SegmentPath1400 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1401 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1402 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1403 bfdNoReply.EntityData.Children = types.NewOrderedMap()1404 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()1405 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})1406 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})1407 bfdNoReply.EntityData.YListKeys = []string {}1408 return &(bfdNoReply.EntityData)1409}1410// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent1411// Protect Reply Packet transmit counts1412type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent struct {1413 EntityData types.CommonEntityData1414 YFilter yfilter.YFilter1415 // Transmit good packets.1416 TransmitGood MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitGood1417 // Transmit drop packets.1418 TransmitDrop MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitDrop1419 // Transmit good BFD request packets.1420 TransmitBfdGood MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitBfdGood1421 // No Reply action for echo reqeust of BFD bootstrap.1422 BfdNoReply MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_BfdNoReply1423}1424func (protectRepSent *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent) GetEntityData() *types.CommonEntityData {1425 protectRepSent.EntityData.YFilter = protectRepSent.YFilter1426 protectRepSent.EntityData.YangName = "protect-rep-sent"1427 protectRepSent.EntityData.BundleName = "cisco_ios_xr"1428 protectRepSent.EntityData.ParentYangName = "packet-statistics"1429 protectRepSent.EntityData.SegmentPath = "protect-rep-sent"1430 protectRepSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/" + protectRepSent.EntityData.SegmentPath1431 protectRepSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1432 protectRepSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1433 protectRepSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1434 protectRepSent.EntityData.Children = types.NewOrderedMap()1435 protectRepSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &protectRepSent.TransmitGood})1436 protectRepSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &protectRepSent.TransmitDrop})1437 protectRepSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &protectRepSent.TransmitBfdGood})1438 protectRepSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &protectRepSent.BfdNoReply})1439 protectRepSent.EntityData.Leafs = types.NewOrderedMap()1440 protectRepSent.EntityData.YListKeys = []string {}1441 return &(protectRepSent.EntityData)1442}1443// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitGood1444// Transmit good packets1445type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitGood struct {1446 EntityData types.CommonEntityData1447 YFilter yfilter.YFilter1448 // Packet counter. The type is interface{} with range:1449 // 0..18446744073709551615.1450 Packets interface{}1451 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1452 // Units are byte.1453 Bytes interface{}1454}1455func (transmitGood *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitGood) GetEntityData() *types.CommonEntityData {1456 transmitGood.EntityData.YFilter = transmitGood.YFilter1457 transmitGood.EntityData.YangName = "transmit-good"1458 transmitGood.EntityData.BundleName = "cisco_ios_xr"1459 transmitGood.EntityData.ParentYangName = "protect-rep-sent"1460 transmitGood.EntityData.SegmentPath = "transmit-good"1461 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-rep-sent/" + transmitGood.EntityData.SegmentPath1462 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1463 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1464 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1465 transmitGood.EntityData.Children = types.NewOrderedMap()1466 transmitGood.EntityData.Leafs = types.NewOrderedMap()1467 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})1468 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})1469 transmitGood.EntityData.YListKeys = []string {}1470 return &(transmitGood.EntityData)1471}1472// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitDrop1473// Transmit drop packets1474type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitDrop struct {1475 EntityData types.CommonEntityData1476 YFilter yfilter.YFilter1477 // Packet counter. The type is interface{} with range:1478 // 0..18446744073709551615.1479 Packets interface{}1480 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1481 // Units are byte.1482 Bytes interface{}1483}1484func (transmitDrop *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitDrop) GetEntityData() *types.CommonEntityData {1485 transmitDrop.EntityData.YFilter = transmitDrop.YFilter1486 transmitDrop.EntityData.YangName = "transmit-drop"1487 transmitDrop.EntityData.BundleName = "cisco_ios_xr"1488 transmitDrop.EntityData.ParentYangName = "protect-rep-sent"1489 transmitDrop.EntityData.SegmentPath = "transmit-drop"1490 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-rep-sent/" + transmitDrop.EntityData.SegmentPath1491 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1492 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1493 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1494 transmitDrop.EntityData.Children = types.NewOrderedMap()1495 transmitDrop.EntityData.Leafs = types.NewOrderedMap()1496 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})1497 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})1498 transmitDrop.EntityData.YListKeys = []string {}1499 return &(transmitDrop.EntityData)1500}1501// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitBfdGood1502// Transmit good BFD request packets1503type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitBfdGood struct {1504 EntityData types.CommonEntityData1505 YFilter yfilter.YFilter1506 // Packet counter. The type is interface{} with range:1507 // 0..18446744073709551615.1508 Packets interface{}1509 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1510 // Units are byte.1511 Bytes interface{}1512}1513func (transmitBfdGood *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {1514 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter1515 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"1516 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"1517 transmitBfdGood.EntityData.ParentYangName = "protect-rep-sent"1518 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"1519 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-rep-sent/" + transmitBfdGood.EntityData.SegmentPath1520 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1521 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1522 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1523 transmitBfdGood.EntityData.Children = types.NewOrderedMap()1524 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()1525 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})1526 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})1527 transmitBfdGood.EntityData.YListKeys = []string {}1528 return &(transmitBfdGood.EntityData)1529}1530// MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_BfdNoReply1531// No Reply action for echo reqeust of BFD1532// bootstrap1533type MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_BfdNoReply struct {1534 EntityData types.CommonEntityData1535 YFilter yfilter.YFilter1536 // Packet counter. The type is interface{} with range:1537 // 0..18446744073709551615.1538 Packets interface{}1539 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1540 // Units are byte.1541 Bytes interface{}1542}1543func (bfdNoReply *MplsOam_Interface_Details_Detail_PacketStatistics_ProtectRepSent_BfdNoReply) GetEntityData() *types.CommonEntityData {1544 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter1545 bfdNoReply.EntityData.YangName = "bfd-no-reply"1546 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"1547 bfdNoReply.EntityData.ParentYangName = "protect-rep-sent"1548 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"1549 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/interface/details/detail/packet-statistics/protect-rep-sent/" + bfdNoReply.EntityData.SegmentPath1550 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1551 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1552 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1553 bfdNoReply.EntityData.Children = types.NewOrderedMap()1554 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()1555 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})1556 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})1557 bfdNoReply.EntityData.YListKeys = []string {}1558 return &(bfdNoReply.EntityData)1559}1560// MplsOam_Packet1561// LSPV packet counters operational data1562type MplsOam_Packet struct {1563 EntityData types.CommonEntityData1564 YFilter yfilter.YFilter1565 // Packet reception counts.1566 Received MplsOam_Packet_Received1567 // Packet transmit counts.1568 Sent MplsOam_Packet_Sent1569 // Working Request Packet transmit counts.1570 WorkingReqSent MplsOam_Packet_WorkingReqSent1571 // Working Reply Packet transmit counts.1572 WorkingRepSent MplsOam_Packet_WorkingRepSent1573 // Protect Request Packet transmit counts.1574 ProtectReqSent MplsOam_Packet_ProtectReqSent1575 // Protect Reply Packet transmit counts.1576 ProtectRepSent MplsOam_Packet_ProtectRepSent1577}1578func (packet *MplsOam_Packet) GetEntityData() *types.CommonEntityData {1579 packet.EntityData.YFilter = packet.YFilter1580 packet.EntityData.YangName = "packet"1581 packet.EntityData.BundleName = "cisco_ios_xr"1582 packet.EntityData.ParentYangName = "mpls-oam"1583 packet.EntityData.SegmentPath = "packet"1584 packet.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/" + packet.EntityData.SegmentPath1585 packet.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1586 packet.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1587 packet.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1588 packet.EntityData.Children = types.NewOrderedMap()1589 packet.EntityData.Children.Append("received", types.YChild{"Received", &packet.Received})1590 packet.EntityData.Children.Append("sent", types.YChild{"Sent", &packet.Sent})1591 packet.EntityData.Children.Append("working-req-sent", types.YChild{"WorkingReqSent", &packet.WorkingReqSent})1592 packet.EntityData.Children.Append("working-rep-sent", types.YChild{"WorkingRepSent", &packet.WorkingRepSent})1593 packet.EntityData.Children.Append("protect-req-sent", types.YChild{"ProtectReqSent", &packet.ProtectReqSent})1594 packet.EntityData.Children.Append("protect-rep-sent", types.YChild{"ProtectRepSent", &packet.ProtectRepSent})1595 packet.EntityData.Leafs = types.NewOrderedMap()1596 packet.EntityData.YListKeys = []string {}1597 return &(packet.EntityData)1598}1599// MplsOam_Packet_Received1600// Packet reception counts1601type MplsOam_Packet_Received struct {1602 EntityData types.CommonEntityData1603 YFilter yfilter.YFilter1604 // Received good request.1605 ReceivedGoodRequest MplsOam_Packet_Received_ReceivedGoodRequest1606 // Received good reply.1607 ReceivedGoodReply MplsOam_Packet_Received_ReceivedGoodReply1608 // Received unknown packets.1609 ReceivedUnknown MplsOam_Packet_Received_ReceivedUnknown1610 // IP header error.1611 ReceivedErrorIpHeader MplsOam_Packet_Received_ReceivedErrorIpHeader1612 // UDP header error.1613 ReceivedErrorUdpHeader MplsOam_Packet_Received_ReceivedErrorUdpHeader1614 // RUNT error.1615 ReceivedErrorRunt MplsOam_Packet_Received_ReceivedErrorRunt1616 // Dropped queue full.1617 ReceivedErrorQueueFull MplsOam_Packet_Received_ReceivedErrorQueueFull1618 // General error.1619 ReceivedErrorGeneral MplsOam_Packet_Received_ReceivedErrorGeneral1620 // Error no Interfaces.1621 ReceivedErrorNoInterface MplsOam_Packet_Received_ReceivedErrorNoInterface1622 // Error no memory.1623 ReceivedErrorNoMemory MplsOam_Packet_Received_ReceivedErrorNoMemory1624 // Protect Protocol Received good request.1625 ProtectProtocolReceivedGoodRequest MplsOam_Packet_Received_ProtectProtocolReceivedGoodRequest1626 // Protect Protocol Received good reply.1627 ProtectProtocolReceivedGoodReply MplsOam_Packet_Received_ProtectProtocolReceivedGoodReply1628 // Received Reqeust with BFD TLV.1629 ReceivedGoodBfdRequest MplsOam_Packet_Received_ReceivedGoodBfdRequest1630 // Received Reply with BFD TLV.1631 ReceivedGoodBfdReply MplsOam_Packet_Received_ReceivedGoodBfdReply1632}1633func (received *MplsOam_Packet_Received) GetEntityData() *types.CommonEntityData {1634 received.EntityData.YFilter = received.YFilter1635 received.EntityData.YangName = "received"1636 received.EntityData.BundleName = "cisco_ios_xr"1637 received.EntityData.ParentYangName = "packet"1638 received.EntityData.SegmentPath = "received"1639 received.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/" + received.EntityData.SegmentPath1640 received.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1641 received.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1642 received.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1643 received.EntityData.Children = types.NewOrderedMap()1644 received.EntityData.Children.Append("received-good-request", types.YChild{"ReceivedGoodRequest", &received.ReceivedGoodRequest})1645 received.EntityData.Children.Append("received-good-reply", types.YChild{"ReceivedGoodReply", &received.ReceivedGoodReply})1646 received.EntityData.Children.Append("received-unknown", types.YChild{"ReceivedUnknown", &received.ReceivedUnknown})1647 received.EntityData.Children.Append("received-error-ip-header", types.YChild{"ReceivedErrorIpHeader", &received.ReceivedErrorIpHeader})1648 received.EntityData.Children.Append("received-error-udp-header", types.YChild{"ReceivedErrorUdpHeader", &received.ReceivedErrorUdpHeader})1649 received.EntityData.Children.Append("received-error-runt", types.YChild{"ReceivedErrorRunt", &received.ReceivedErrorRunt})1650 received.EntityData.Children.Append("received-error-queue-full", types.YChild{"ReceivedErrorQueueFull", &received.ReceivedErrorQueueFull})1651 received.EntityData.Children.Append("received-error-general", types.YChild{"ReceivedErrorGeneral", &received.ReceivedErrorGeneral})1652 received.EntityData.Children.Append("received-error-no-interface", types.YChild{"ReceivedErrorNoInterface", &received.ReceivedErrorNoInterface})1653 received.EntityData.Children.Append("received-error-no-memory", types.YChild{"ReceivedErrorNoMemory", &received.ReceivedErrorNoMemory})1654 received.EntityData.Children.Append("protect-protocol-received-good-request", types.YChild{"ProtectProtocolReceivedGoodRequest", &received.ProtectProtocolReceivedGoodRequest})1655 received.EntityData.Children.Append("protect-protocol-received-good-reply", types.YChild{"ProtectProtocolReceivedGoodReply", &received.ProtectProtocolReceivedGoodReply})1656 received.EntityData.Children.Append("received-good-bfd-request", types.YChild{"ReceivedGoodBfdRequest", &received.ReceivedGoodBfdRequest})1657 received.EntityData.Children.Append("received-good-bfd-reply", types.YChild{"ReceivedGoodBfdReply", &received.ReceivedGoodBfdReply})1658 received.EntityData.Leafs = types.NewOrderedMap()1659 received.EntityData.YListKeys = []string {}1660 return &(received.EntityData)1661}1662// MplsOam_Packet_Received_ReceivedGoodRequest1663// Received good request1664type MplsOam_Packet_Received_ReceivedGoodRequest struct {1665 EntityData types.CommonEntityData1666 YFilter yfilter.YFilter1667 // Packet counter. The type is interface{} with range:1668 // 0..18446744073709551615.1669 Packets interface{}1670 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1671 // Units are byte.1672 Bytes interface{}1673}1674func (receivedGoodRequest *MplsOam_Packet_Received_ReceivedGoodRequest) GetEntityData() *types.CommonEntityData {1675 receivedGoodRequest.EntityData.YFilter = receivedGoodRequest.YFilter1676 receivedGoodRequest.EntityData.YangName = "received-good-request"1677 receivedGoodRequest.EntityData.BundleName = "cisco_ios_xr"1678 receivedGoodRequest.EntityData.ParentYangName = "received"1679 receivedGoodRequest.EntityData.SegmentPath = "received-good-request"1680 receivedGoodRequest.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedGoodRequest.EntityData.SegmentPath1681 receivedGoodRequest.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1682 receivedGoodRequest.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1683 receivedGoodRequest.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1684 receivedGoodRequest.EntityData.Children = types.NewOrderedMap()1685 receivedGoodRequest.EntityData.Leafs = types.NewOrderedMap()1686 receivedGoodRequest.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodRequest.Packets})1687 receivedGoodRequest.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodRequest.Bytes})1688 receivedGoodRequest.EntityData.YListKeys = []string {}1689 return &(receivedGoodRequest.EntityData)1690}1691// MplsOam_Packet_Received_ReceivedGoodReply1692// Received good reply1693type MplsOam_Packet_Received_ReceivedGoodReply struct {1694 EntityData types.CommonEntityData1695 YFilter yfilter.YFilter1696 // Packet counter. The type is interface{} with range:1697 // 0..18446744073709551615.1698 Packets interface{}1699 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1700 // Units are byte.1701 Bytes interface{}1702}1703func (receivedGoodReply *MplsOam_Packet_Received_ReceivedGoodReply) GetEntityData() *types.CommonEntityData {1704 receivedGoodReply.EntityData.YFilter = receivedGoodReply.YFilter1705 receivedGoodReply.EntityData.YangName = "received-good-reply"1706 receivedGoodReply.EntityData.BundleName = "cisco_ios_xr"1707 receivedGoodReply.EntityData.ParentYangName = "received"1708 receivedGoodReply.EntityData.SegmentPath = "received-good-reply"1709 receivedGoodReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedGoodReply.EntityData.SegmentPath1710 receivedGoodReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1711 receivedGoodReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1712 receivedGoodReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1713 receivedGoodReply.EntityData.Children = types.NewOrderedMap()1714 receivedGoodReply.EntityData.Leafs = types.NewOrderedMap()1715 receivedGoodReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodReply.Packets})1716 receivedGoodReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodReply.Bytes})1717 receivedGoodReply.EntityData.YListKeys = []string {}1718 return &(receivedGoodReply.EntityData)1719}1720// MplsOam_Packet_Received_ReceivedUnknown1721// Received unknown packets1722type MplsOam_Packet_Received_ReceivedUnknown struct {1723 EntityData types.CommonEntityData1724 YFilter yfilter.YFilter1725 // Packet counter. The type is interface{} with range:1726 // 0..18446744073709551615.1727 Packets interface{}1728 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1729 // Units are byte.1730 Bytes interface{}1731}1732func (receivedUnknown *MplsOam_Packet_Received_ReceivedUnknown) GetEntityData() *types.CommonEntityData {1733 receivedUnknown.EntityData.YFilter = receivedUnknown.YFilter1734 receivedUnknown.EntityData.YangName = "received-unknown"1735 receivedUnknown.EntityData.BundleName = "cisco_ios_xr"1736 receivedUnknown.EntityData.ParentYangName = "received"1737 receivedUnknown.EntityData.SegmentPath = "received-unknown"1738 receivedUnknown.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedUnknown.EntityData.SegmentPath1739 receivedUnknown.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1740 receivedUnknown.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1741 receivedUnknown.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1742 receivedUnknown.EntityData.Children = types.NewOrderedMap()1743 receivedUnknown.EntityData.Leafs = types.NewOrderedMap()1744 receivedUnknown.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedUnknown.Packets})1745 receivedUnknown.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedUnknown.Bytes})1746 receivedUnknown.EntityData.YListKeys = []string {}1747 return &(receivedUnknown.EntityData)1748}1749// MplsOam_Packet_Received_ReceivedErrorIpHeader1750// IP header error1751type MplsOam_Packet_Received_ReceivedErrorIpHeader struct {1752 EntityData types.CommonEntityData1753 YFilter yfilter.YFilter1754 // Packet counter. The type is interface{} with range:1755 // 0..18446744073709551615.1756 Packets interface{}1757 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1758 // Units are byte.1759 Bytes interface{}1760}1761func (receivedErrorIpHeader *MplsOam_Packet_Received_ReceivedErrorIpHeader) GetEntityData() *types.CommonEntityData {1762 receivedErrorIpHeader.EntityData.YFilter = receivedErrorIpHeader.YFilter1763 receivedErrorIpHeader.EntityData.YangName = "received-error-ip-header"1764 receivedErrorIpHeader.EntityData.BundleName = "cisco_ios_xr"1765 receivedErrorIpHeader.EntityData.ParentYangName = "received"1766 receivedErrorIpHeader.EntityData.SegmentPath = "received-error-ip-header"1767 receivedErrorIpHeader.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorIpHeader.EntityData.SegmentPath1768 receivedErrorIpHeader.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1769 receivedErrorIpHeader.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1770 receivedErrorIpHeader.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1771 receivedErrorIpHeader.EntityData.Children = types.NewOrderedMap()1772 receivedErrorIpHeader.EntityData.Leafs = types.NewOrderedMap()1773 receivedErrorIpHeader.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorIpHeader.Packets})1774 receivedErrorIpHeader.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorIpHeader.Bytes})1775 receivedErrorIpHeader.EntityData.YListKeys = []string {}1776 return &(receivedErrorIpHeader.EntityData)1777}1778// MplsOam_Packet_Received_ReceivedErrorUdpHeader1779// UDP header error1780type MplsOam_Packet_Received_ReceivedErrorUdpHeader struct {1781 EntityData types.CommonEntityData1782 YFilter yfilter.YFilter1783 // Packet counter. The type is interface{} with range:1784 // 0..18446744073709551615.1785 Packets interface{}1786 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1787 // Units are byte.1788 Bytes interface{}1789}1790func (receivedErrorUdpHeader *MplsOam_Packet_Received_ReceivedErrorUdpHeader) GetEntityData() *types.CommonEntityData {1791 receivedErrorUdpHeader.EntityData.YFilter = receivedErrorUdpHeader.YFilter1792 receivedErrorUdpHeader.EntityData.YangName = "received-error-udp-header"1793 receivedErrorUdpHeader.EntityData.BundleName = "cisco_ios_xr"1794 receivedErrorUdpHeader.EntityData.ParentYangName = "received"1795 receivedErrorUdpHeader.EntityData.SegmentPath = "received-error-udp-header"1796 receivedErrorUdpHeader.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorUdpHeader.EntityData.SegmentPath1797 receivedErrorUdpHeader.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1798 receivedErrorUdpHeader.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1799 receivedErrorUdpHeader.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1800 receivedErrorUdpHeader.EntityData.Children = types.NewOrderedMap()1801 receivedErrorUdpHeader.EntityData.Leafs = types.NewOrderedMap()1802 receivedErrorUdpHeader.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorUdpHeader.Packets})1803 receivedErrorUdpHeader.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorUdpHeader.Bytes})1804 receivedErrorUdpHeader.EntityData.YListKeys = []string {}1805 return &(receivedErrorUdpHeader.EntityData)1806}1807// MplsOam_Packet_Received_ReceivedErrorRunt1808// RUNT error1809type MplsOam_Packet_Received_ReceivedErrorRunt struct {1810 EntityData types.CommonEntityData1811 YFilter yfilter.YFilter1812 // Packet counter. The type is interface{} with range:1813 // 0..18446744073709551615.1814 Packets interface{}1815 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1816 // Units are byte.1817 Bytes interface{}1818}1819func (receivedErrorRunt *MplsOam_Packet_Received_ReceivedErrorRunt) GetEntityData() *types.CommonEntityData {1820 receivedErrorRunt.EntityData.YFilter = receivedErrorRunt.YFilter1821 receivedErrorRunt.EntityData.YangName = "received-error-runt"1822 receivedErrorRunt.EntityData.BundleName = "cisco_ios_xr"1823 receivedErrorRunt.EntityData.ParentYangName = "received"1824 receivedErrorRunt.EntityData.SegmentPath = "received-error-runt"1825 receivedErrorRunt.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorRunt.EntityData.SegmentPath1826 receivedErrorRunt.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1827 receivedErrorRunt.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1828 receivedErrorRunt.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1829 receivedErrorRunt.EntityData.Children = types.NewOrderedMap()1830 receivedErrorRunt.EntityData.Leafs = types.NewOrderedMap()1831 receivedErrorRunt.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorRunt.Packets})1832 receivedErrorRunt.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorRunt.Bytes})1833 receivedErrorRunt.EntityData.YListKeys = []string {}1834 return &(receivedErrorRunt.EntityData)1835}1836// MplsOam_Packet_Received_ReceivedErrorQueueFull1837// Dropped queue full1838type MplsOam_Packet_Received_ReceivedErrorQueueFull struct {1839 EntityData types.CommonEntityData1840 YFilter yfilter.YFilter1841 // Packet counter. The type is interface{} with range:1842 // 0..18446744073709551615.1843 Packets interface{}1844 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1845 // Units are byte.1846 Bytes interface{}1847}1848func (receivedErrorQueueFull *MplsOam_Packet_Received_ReceivedErrorQueueFull) GetEntityData() *types.CommonEntityData {1849 receivedErrorQueueFull.EntityData.YFilter = receivedErrorQueueFull.YFilter1850 receivedErrorQueueFull.EntityData.YangName = "received-error-queue-full"1851 receivedErrorQueueFull.EntityData.BundleName = "cisco_ios_xr"1852 receivedErrorQueueFull.EntityData.ParentYangName = "received"1853 receivedErrorQueueFull.EntityData.SegmentPath = "received-error-queue-full"1854 receivedErrorQueueFull.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorQueueFull.EntityData.SegmentPath1855 receivedErrorQueueFull.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1856 receivedErrorQueueFull.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1857 receivedErrorQueueFull.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1858 receivedErrorQueueFull.EntityData.Children = types.NewOrderedMap()1859 receivedErrorQueueFull.EntityData.Leafs = types.NewOrderedMap()1860 receivedErrorQueueFull.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorQueueFull.Packets})1861 receivedErrorQueueFull.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorQueueFull.Bytes})1862 receivedErrorQueueFull.EntityData.YListKeys = []string {}1863 return &(receivedErrorQueueFull.EntityData)1864}1865// MplsOam_Packet_Received_ReceivedErrorGeneral1866// General error1867type MplsOam_Packet_Received_ReceivedErrorGeneral struct {1868 EntityData types.CommonEntityData1869 YFilter yfilter.YFilter1870 // Packet counter. The type is interface{} with range:1871 // 0..18446744073709551615.1872 Packets interface{}1873 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1874 // Units are byte.1875 Bytes interface{}1876}1877func (receivedErrorGeneral *MplsOam_Packet_Received_ReceivedErrorGeneral) GetEntityData() *types.CommonEntityData {1878 receivedErrorGeneral.EntityData.YFilter = receivedErrorGeneral.YFilter1879 receivedErrorGeneral.EntityData.YangName = "received-error-general"1880 receivedErrorGeneral.EntityData.BundleName = "cisco_ios_xr"1881 receivedErrorGeneral.EntityData.ParentYangName = "received"1882 receivedErrorGeneral.EntityData.SegmentPath = "received-error-general"1883 receivedErrorGeneral.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorGeneral.EntityData.SegmentPath1884 receivedErrorGeneral.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1885 receivedErrorGeneral.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1886 receivedErrorGeneral.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1887 receivedErrorGeneral.EntityData.Children = types.NewOrderedMap()1888 receivedErrorGeneral.EntityData.Leafs = types.NewOrderedMap()1889 receivedErrorGeneral.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorGeneral.Packets})1890 receivedErrorGeneral.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorGeneral.Bytes})1891 receivedErrorGeneral.EntityData.YListKeys = []string {}1892 return &(receivedErrorGeneral.EntityData)1893}1894// MplsOam_Packet_Received_ReceivedErrorNoInterface1895// Error no Interfaces1896type MplsOam_Packet_Received_ReceivedErrorNoInterface struct {1897 EntityData types.CommonEntityData1898 YFilter yfilter.YFilter1899 // Packet counter. The type is interface{} with range:1900 // 0..18446744073709551615.1901 Packets interface{}1902 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1903 // Units are byte.1904 Bytes interface{}1905}1906func (receivedErrorNoInterface *MplsOam_Packet_Received_ReceivedErrorNoInterface) GetEntityData() *types.CommonEntityData {1907 receivedErrorNoInterface.EntityData.YFilter = receivedErrorNoInterface.YFilter1908 receivedErrorNoInterface.EntityData.YangName = "received-error-no-interface"1909 receivedErrorNoInterface.EntityData.BundleName = "cisco_ios_xr"1910 receivedErrorNoInterface.EntityData.ParentYangName = "received"1911 receivedErrorNoInterface.EntityData.SegmentPath = "received-error-no-interface"1912 receivedErrorNoInterface.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorNoInterface.EntityData.SegmentPath1913 receivedErrorNoInterface.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1914 receivedErrorNoInterface.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1915 receivedErrorNoInterface.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1916 receivedErrorNoInterface.EntityData.Children = types.NewOrderedMap()1917 receivedErrorNoInterface.EntityData.Leafs = types.NewOrderedMap()1918 receivedErrorNoInterface.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorNoInterface.Packets})1919 receivedErrorNoInterface.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorNoInterface.Bytes})1920 receivedErrorNoInterface.EntityData.YListKeys = []string {}1921 return &(receivedErrorNoInterface.EntityData)1922}1923// MplsOam_Packet_Received_ReceivedErrorNoMemory1924// Error no memory1925type MplsOam_Packet_Received_ReceivedErrorNoMemory struct {1926 EntityData types.CommonEntityData1927 YFilter yfilter.YFilter1928 // Packet counter. The type is interface{} with range:1929 // 0..18446744073709551615.1930 Packets interface{}1931 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1932 // Units are byte.1933 Bytes interface{}1934}1935func (receivedErrorNoMemory *MplsOam_Packet_Received_ReceivedErrorNoMemory) GetEntityData() *types.CommonEntityData {1936 receivedErrorNoMemory.EntityData.YFilter = receivedErrorNoMemory.YFilter1937 receivedErrorNoMemory.EntityData.YangName = "received-error-no-memory"1938 receivedErrorNoMemory.EntityData.BundleName = "cisco_ios_xr"1939 receivedErrorNoMemory.EntityData.ParentYangName = "received"1940 receivedErrorNoMemory.EntityData.SegmentPath = "received-error-no-memory"1941 receivedErrorNoMemory.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedErrorNoMemory.EntityData.SegmentPath1942 receivedErrorNoMemory.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1943 receivedErrorNoMemory.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1944 receivedErrorNoMemory.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1945 receivedErrorNoMemory.EntityData.Children = types.NewOrderedMap()1946 receivedErrorNoMemory.EntityData.Leafs = types.NewOrderedMap()1947 receivedErrorNoMemory.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedErrorNoMemory.Packets})1948 receivedErrorNoMemory.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedErrorNoMemory.Bytes})1949 receivedErrorNoMemory.EntityData.YListKeys = []string {}1950 return &(receivedErrorNoMemory.EntityData)1951}1952// MplsOam_Packet_Received_ProtectProtocolReceivedGoodRequest1953// Protect Protocol Received good request1954type MplsOam_Packet_Received_ProtectProtocolReceivedGoodRequest struct {1955 EntityData types.CommonEntityData1956 YFilter yfilter.YFilter1957 // Packet counter. The type is interface{} with range:1958 // 0..18446744073709551615.1959 Packets interface{}1960 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1961 // Units are byte.1962 Bytes interface{}1963}1964func (protectProtocolReceivedGoodRequest *MplsOam_Packet_Received_ProtectProtocolReceivedGoodRequest) GetEntityData() *types.CommonEntityData {1965 protectProtocolReceivedGoodRequest.EntityData.YFilter = protectProtocolReceivedGoodRequest.YFilter1966 protectProtocolReceivedGoodRequest.EntityData.YangName = "protect-protocol-received-good-request"1967 protectProtocolReceivedGoodRequest.EntityData.BundleName = "cisco_ios_xr"1968 protectProtocolReceivedGoodRequest.EntityData.ParentYangName = "received"1969 protectProtocolReceivedGoodRequest.EntityData.SegmentPath = "protect-protocol-received-good-request"1970 protectProtocolReceivedGoodRequest.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + protectProtocolReceivedGoodRequest.EntityData.SegmentPath1971 protectProtocolReceivedGoodRequest.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()1972 protectProtocolReceivedGoodRequest.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()1973 protectProtocolReceivedGoodRequest.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()1974 protectProtocolReceivedGoodRequest.EntityData.Children = types.NewOrderedMap()1975 protectProtocolReceivedGoodRequest.EntityData.Leafs = types.NewOrderedMap()1976 protectProtocolReceivedGoodRequest.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", protectProtocolReceivedGoodRequest.Packets})1977 protectProtocolReceivedGoodRequest.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", protectProtocolReceivedGoodRequest.Bytes})1978 protectProtocolReceivedGoodRequest.EntityData.YListKeys = []string {}1979 return &(protectProtocolReceivedGoodRequest.EntityData)1980}1981// MplsOam_Packet_Received_ProtectProtocolReceivedGoodReply1982// Protect Protocol Received good reply1983type MplsOam_Packet_Received_ProtectProtocolReceivedGoodReply struct {1984 EntityData types.CommonEntityData1985 YFilter yfilter.YFilter1986 // Packet counter. The type is interface{} with range:1987 // 0..18446744073709551615.1988 Packets interface{}1989 // Byte counter. The type is interface{} with range: 0..18446744073709551615.1990 // Units are byte.1991 Bytes interface{}1992}1993func (protectProtocolReceivedGoodReply *MplsOam_Packet_Received_ProtectProtocolReceivedGoodReply) GetEntityData() *types.CommonEntityData {1994 protectProtocolReceivedGoodReply.EntityData.YFilter = protectProtocolReceivedGoodReply.YFilter1995 protectProtocolReceivedGoodReply.EntityData.YangName = "protect-protocol-received-good-reply"1996 protectProtocolReceivedGoodReply.EntityData.BundleName = "cisco_ios_xr"1997 protectProtocolReceivedGoodReply.EntityData.ParentYangName = "received"1998 protectProtocolReceivedGoodReply.EntityData.SegmentPath = "protect-protocol-received-good-reply"1999 protectProtocolReceivedGoodReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + protectProtocolReceivedGoodReply.EntityData.SegmentPath2000 protectProtocolReceivedGoodReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2001 protectProtocolReceivedGoodReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2002 protectProtocolReceivedGoodReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2003 protectProtocolReceivedGoodReply.EntityData.Children = types.NewOrderedMap()2004 protectProtocolReceivedGoodReply.EntityData.Leafs = types.NewOrderedMap()2005 protectProtocolReceivedGoodReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", protectProtocolReceivedGoodReply.Packets})2006 protectProtocolReceivedGoodReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", protectProtocolReceivedGoodReply.Bytes})2007 protectProtocolReceivedGoodReply.EntityData.YListKeys = []string {}2008 return &(protectProtocolReceivedGoodReply.EntityData)2009}2010// MplsOam_Packet_Received_ReceivedGoodBfdRequest2011// Received Reqeust with BFD TLV2012type MplsOam_Packet_Received_ReceivedGoodBfdRequest struct {2013 EntityData types.CommonEntityData2014 YFilter yfilter.YFilter2015 // Packet counter. The type is interface{} with range:2016 // 0..18446744073709551615.2017 Packets interface{}2018 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2019 // Units are byte.2020 Bytes interface{}2021}2022func (receivedGoodBfdRequest *MplsOam_Packet_Received_ReceivedGoodBfdRequest) GetEntityData() *types.CommonEntityData {2023 receivedGoodBfdRequest.EntityData.YFilter = receivedGoodBfdRequest.YFilter2024 receivedGoodBfdRequest.EntityData.YangName = "received-good-bfd-request"2025 receivedGoodBfdRequest.EntityData.BundleName = "cisco_ios_xr"2026 receivedGoodBfdRequest.EntityData.ParentYangName = "received"2027 receivedGoodBfdRequest.EntityData.SegmentPath = "received-good-bfd-request"2028 receivedGoodBfdRequest.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedGoodBfdRequest.EntityData.SegmentPath2029 receivedGoodBfdRequest.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2030 receivedGoodBfdRequest.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2031 receivedGoodBfdRequest.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2032 receivedGoodBfdRequest.EntityData.Children = types.NewOrderedMap()2033 receivedGoodBfdRequest.EntityData.Leafs = types.NewOrderedMap()2034 receivedGoodBfdRequest.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodBfdRequest.Packets})2035 receivedGoodBfdRequest.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodBfdRequest.Bytes})2036 receivedGoodBfdRequest.EntityData.YListKeys = []string {}2037 return &(receivedGoodBfdRequest.EntityData)2038}2039// MplsOam_Packet_Received_ReceivedGoodBfdReply2040// Received Reply with BFD TLV2041type MplsOam_Packet_Received_ReceivedGoodBfdReply struct {2042 EntityData types.CommonEntityData2043 YFilter yfilter.YFilter2044 // Packet counter. The type is interface{} with range:2045 // 0..18446744073709551615.2046 Packets interface{}2047 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2048 // Units are byte.2049 Bytes interface{}2050}2051func (receivedGoodBfdReply *MplsOam_Packet_Received_ReceivedGoodBfdReply) GetEntityData() *types.CommonEntityData {2052 receivedGoodBfdReply.EntityData.YFilter = receivedGoodBfdReply.YFilter2053 receivedGoodBfdReply.EntityData.YangName = "received-good-bfd-reply"2054 receivedGoodBfdReply.EntityData.BundleName = "cisco_ios_xr"2055 receivedGoodBfdReply.EntityData.ParentYangName = "received"2056 receivedGoodBfdReply.EntityData.SegmentPath = "received-good-bfd-reply"2057 receivedGoodBfdReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/received/" + receivedGoodBfdReply.EntityData.SegmentPath2058 receivedGoodBfdReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2059 receivedGoodBfdReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2060 receivedGoodBfdReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2061 receivedGoodBfdReply.EntityData.Children = types.NewOrderedMap()2062 receivedGoodBfdReply.EntityData.Leafs = types.NewOrderedMap()2063 receivedGoodBfdReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", receivedGoodBfdReply.Packets})2064 receivedGoodBfdReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", receivedGoodBfdReply.Bytes})2065 receivedGoodBfdReply.EntityData.YListKeys = []string {}2066 return &(receivedGoodBfdReply.EntityData)2067}2068// MplsOam_Packet_Sent2069// Packet transmit counts2070type MplsOam_Packet_Sent struct {2071 EntityData types.CommonEntityData2072 YFilter yfilter.YFilter2073 // Transmit good packets.2074 TransmitGood MplsOam_Packet_Sent_TransmitGood2075 // Transmit drop packets.2076 TransmitDrop MplsOam_Packet_Sent_TransmitDrop2077 // Transmit good BFD request packets.2078 TransmitBfdGood MplsOam_Packet_Sent_TransmitBfdGood2079 // No Reply action for echo reqeust of BFD bootstrap.2080 BfdNoReply MplsOam_Packet_Sent_BfdNoReply2081}2082func (sent *MplsOam_Packet_Sent) GetEntityData() *types.CommonEntityData {2083 sent.EntityData.YFilter = sent.YFilter2084 sent.EntityData.YangName = "sent"2085 sent.EntityData.BundleName = "cisco_ios_xr"2086 sent.EntityData.ParentYangName = "packet"2087 sent.EntityData.SegmentPath = "sent"2088 sent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/" + sent.EntityData.SegmentPath2089 sent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2090 sent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2091 sent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2092 sent.EntityData.Children = types.NewOrderedMap()2093 sent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &sent.TransmitGood})2094 sent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &sent.TransmitDrop})2095 sent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &sent.TransmitBfdGood})2096 sent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &sent.BfdNoReply})2097 sent.EntityData.Leafs = types.NewOrderedMap()2098 sent.EntityData.YListKeys = []string {}2099 return &(sent.EntityData)2100}2101// MplsOam_Packet_Sent_TransmitGood2102// Transmit good packets2103type MplsOam_Packet_Sent_TransmitGood struct {2104 EntityData types.CommonEntityData2105 YFilter yfilter.YFilter2106 // Packet counter. The type is interface{} with range:2107 // 0..18446744073709551615.2108 Packets interface{}2109 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2110 // Units are byte.2111 Bytes interface{}2112}2113func (transmitGood *MplsOam_Packet_Sent_TransmitGood) GetEntityData() *types.CommonEntityData {2114 transmitGood.EntityData.YFilter = transmitGood.YFilter2115 transmitGood.EntityData.YangName = "transmit-good"2116 transmitGood.EntityData.BundleName = "cisco_ios_xr"2117 transmitGood.EntityData.ParentYangName = "sent"2118 transmitGood.EntityData.SegmentPath = "transmit-good"2119 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/sent/" + transmitGood.EntityData.SegmentPath2120 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2121 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2122 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2123 transmitGood.EntityData.Children = types.NewOrderedMap()2124 transmitGood.EntityData.Leafs = types.NewOrderedMap()2125 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})2126 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})2127 transmitGood.EntityData.YListKeys = []string {}2128 return &(transmitGood.EntityData)2129}2130// MplsOam_Packet_Sent_TransmitDrop2131// Transmit drop packets2132type MplsOam_Packet_Sent_TransmitDrop struct {2133 EntityData types.CommonEntityData2134 YFilter yfilter.YFilter2135 // Packet counter. The type is interface{} with range:2136 // 0..18446744073709551615.2137 Packets interface{}2138 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2139 // Units are byte.2140 Bytes interface{}2141}2142func (transmitDrop *MplsOam_Packet_Sent_TransmitDrop) GetEntityData() *types.CommonEntityData {2143 transmitDrop.EntityData.YFilter = transmitDrop.YFilter2144 transmitDrop.EntityData.YangName = "transmit-drop"2145 transmitDrop.EntityData.BundleName = "cisco_ios_xr"2146 transmitDrop.EntityData.ParentYangName = "sent"2147 transmitDrop.EntityData.SegmentPath = "transmit-drop"2148 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/sent/" + transmitDrop.EntityData.SegmentPath2149 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2150 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2151 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2152 transmitDrop.EntityData.Children = types.NewOrderedMap()2153 transmitDrop.EntityData.Leafs = types.NewOrderedMap()2154 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})2155 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})2156 transmitDrop.EntityData.YListKeys = []string {}2157 return &(transmitDrop.EntityData)2158}2159// MplsOam_Packet_Sent_TransmitBfdGood2160// Transmit good BFD request packets2161type MplsOam_Packet_Sent_TransmitBfdGood struct {2162 EntityData types.CommonEntityData2163 YFilter yfilter.YFilter2164 // Packet counter. The type is interface{} with range:2165 // 0..18446744073709551615.2166 Packets interface{}2167 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2168 // Units are byte.2169 Bytes interface{}2170}2171func (transmitBfdGood *MplsOam_Packet_Sent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {2172 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter2173 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"2174 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"2175 transmitBfdGood.EntityData.ParentYangName = "sent"2176 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"2177 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/sent/" + transmitBfdGood.EntityData.SegmentPath2178 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2179 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2180 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2181 transmitBfdGood.EntityData.Children = types.NewOrderedMap()2182 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()2183 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})2184 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})2185 transmitBfdGood.EntityData.YListKeys = []string {}2186 return &(transmitBfdGood.EntityData)2187}2188// MplsOam_Packet_Sent_BfdNoReply2189// No Reply action for echo reqeust of BFD2190// bootstrap2191type MplsOam_Packet_Sent_BfdNoReply struct {2192 EntityData types.CommonEntityData2193 YFilter yfilter.YFilter2194 // Packet counter. The type is interface{} with range:2195 // 0..18446744073709551615.2196 Packets interface{}2197 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2198 // Units are byte.2199 Bytes interface{}2200}2201func (bfdNoReply *MplsOam_Packet_Sent_BfdNoReply) GetEntityData() *types.CommonEntityData {2202 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter2203 bfdNoReply.EntityData.YangName = "bfd-no-reply"2204 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"2205 bfdNoReply.EntityData.ParentYangName = "sent"2206 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"2207 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/sent/" + bfdNoReply.EntityData.SegmentPath2208 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2209 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2210 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2211 bfdNoReply.EntityData.Children = types.NewOrderedMap()2212 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()2213 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})2214 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})2215 bfdNoReply.EntityData.YListKeys = []string {}2216 return &(bfdNoReply.EntityData)2217}2218// MplsOam_Packet_WorkingReqSent2219// Working Request Packet transmit counts2220type MplsOam_Packet_WorkingReqSent struct {2221 EntityData types.CommonEntityData2222 YFilter yfilter.YFilter2223 // Transmit good packets.2224 TransmitGood MplsOam_Packet_WorkingReqSent_TransmitGood2225 // Transmit drop packets.2226 TransmitDrop MplsOam_Packet_WorkingReqSent_TransmitDrop2227 // Transmit good BFD request packets.2228 TransmitBfdGood MplsOam_Packet_WorkingReqSent_TransmitBfdGood2229 // No Reply action for echo reqeust of BFD bootstrap.2230 BfdNoReply MplsOam_Packet_WorkingReqSent_BfdNoReply2231}2232func (workingReqSent *MplsOam_Packet_WorkingReqSent) GetEntityData() *types.CommonEntityData {2233 workingReqSent.EntityData.YFilter = workingReqSent.YFilter2234 workingReqSent.EntityData.YangName = "working-req-sent"2235 workingReqSent.EntityData.BundleName = "cisco_ios_xr"2236 workingReqSent.EntityData.ParentYangName = "packet"2237 workingReqSent.EntityData.SegmentPath = "working-req-sent"2238 workingReqSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/" + workingReqSent.EntityData.SegmentPath2239 workingReqSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2240 workingReqSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2241 workingReqSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2242 workingReqSent.EntityData.Children = types.NewOrderedMap()2243 workingReqSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &workingReqSent.TransmitGood})2244 workingReqSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &workingReqSent.TransmitDrop})2245 workingReqSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &workingReqSent.TransmitBfdGood})2246 workingReqSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &workingReqSent.BfdNoReply})2247 workingReqSent.EntityData.Leafs = types.NewOrderedMap()2248 workingReqSent.EntityData.YListKeys = []string {}2249 return &(workingReqSent.EntityData)2250}2251// MplsOam_Packet_WorkingReqSent_TransmitGood2252// Transmit good packets2253type MplsOam_Packet_WorkingReqSent_TransmitGood struct {2254 EntityData types.CommonEntityData2255 YFilter yfilter.YFilter2256 // Packet counter. The type is interface{} with range:2257 // 0..18446744073709551615.2258 Packets interface{}2259 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2260 // Units are byte.2261 Bytes interface{}2262}2263func (transmitGood *MplsOam_Packet_WorkingReqSent_TransmitGood) GetEntityData() *types.CommonEntityData {2264 transmitGood.EntityData.YFilter = transmitGood.YFilter2265 transmitGood.EntityData.YangName = "transmit-good"2266 transmitGood.EntityData.BundleName = "cisco_ios_xr"2267 transmitGood.EntityData.ParentYangName = "working-req-sent"2268 transmitGood.EntityData.SegmentPath = "transmit-good"2269 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-req-sent/" + transmitGood.EntityData.SegmentPath2270 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2271 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2272 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2273 transmitGood.EntityData.Children = types.NewOrderedMap()2274 transmitGood.EntityData.Leafs = types.NewOrderedMap()2275 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})2276 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})2277 transmitGood.EntityData.YListKeys = []string {}2278 return &(transmitGood.EntityData)2279}2280// MplsOam_Packet_WorkingReqSent_TransmitDrop2281// Transmit drop packets2282type MplsOam_Packet_WorkingReqSent_TransmitDrop struct {2283 EntityData types.CommonEntityData2284 YFilter yfilter.YFilter2285 // Packet counter. The type is interface{} with range:2286 // 0..18446744073709551615.2287 Packets interface{}2288 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2289 // Units are byte.2290 Bytes interface{}2291}2292func (transmitDrop *MplsOam_Packet_WorkingReqSent_TransmitDrop) GetEntityData() *types.CommonEntityData {2293 transmitDrop.EntityData.YFilter = transmitDrop.YFilter2294 transmitDrop.EntityData.YangName = "transmit-drop"2295 transmitDrop.EntityData.BundleName = "cisco_ios_xr"2296 transmitDrop.EntityData.ParentYangName = "working-req-sent"2297 transmitDrop.EntityData.SegmentPath = "transmit-drop"2298 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-req-sent/" + transmitDrop.EntityData.SegmentPath2299 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2300 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2301 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2302 transmitDrop.EntityData.Children = types.NewOrderedMap()2303 transmitDrop.EntityData.Leafs = types.NewOrderedMap()2304 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})2305 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})2306 transmitDrop.EntityData.YListKeys = []string {}2307 return &(transmitDrop.EntityData)2308}2309// MplsOam_Packet_WorkingReqSent_TransmitBfdGood2310// Transmit good BFD request packets2311type MplsOam_Packet_WorkingReqSent_TransmitBfdGood struct {2312 EntityData types.CommonEntityData2313 YFilter yfilter.YFilter2314 // Packet counter. The type is interface{} with range:2315 // 0..18446744073709551615.2316 Packets interface{}2317 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2318 // Units are byte.2319 Bytes interface{}2320}2321func (transmitBfdGood *MplsOam_Packet_WorkingReqSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {2322 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter2323 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"2324 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"2325 transmitBfdGood.EntityData.ParentYangName = "working-req-sent"2326 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"2327 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-req-sent/" + transmitBfdGood.EntityData.SegmentPath2328 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2329 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2330 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2331 transmitBfdGood.EntityData.Children = types.NewOrderedMap()2332 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()2333 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})2334 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})2335 transmitBfdGood.EntityData.YListKeys = []string {}2336 return &(transmitBfdGood.EntityData)2337}2338// MplsOam_Packet_WorkingReqSent_BfdNoReply2339// No Reply action for echo reqeust of BFD2340// bootstrap2341type MplsOam_Packet_WorkingReqSent_BfdNoReply struct {2342 EntityData types.CommonEntityData2343 YFilter yfilter.YFilter2344 // Packet counter. The type is interface{} with range:2345 // 0..18446744073709551615.2346 Packets interface{}2347 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2348 // Units are byte.2349 Bytes interface{}2350}2351func (bfdNoReply *MplsOam_Packet_WorkingReqSent_BfdNoReply) GetEntityData() *types.CommonEntityData {2352 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter2353 bfdNoReply.EntityData.YangName = "bfd-no-reply"2354 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"2355 bfdNoReply.EntityData.ParentYangName = "working-req-sent"2356 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"2357 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-req-sent/" + bfdNoReply.EntityData.SegmentPath2358 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2359 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2360 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2361 bfdNoReply.EntityData.Children = types.NewOrderedMap()2362 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()2363 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})2364 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})2365 bfdNoReply.EntityData.YListKeys = []string {}2366 return &(bfdNoReply.EntityData)2367}2368// MplsOam_Packet_WorkingRepSent2369// Working Reply Packet transmit counts2370type MplsOam_Packet_WorkingRepSent struct {2371 EntityData types.CommonEntityData2372 YFilter yfilter.YFilter2373 // Transmit good packets.2374 TransmitGood MplsOam_Packet_WorkingRepSent_TransmitGood2375 // Transmit drop packets.2376 TransmitDrop MplsOam_Packet_WorkingRepSent_TransmitDrop2377 // Transmit good BFD request packets.2378 TransmitBfdGood MplsOam_Packet_WorkingRepSent_TransmitBfdGood2379 // No Reply action for echo reqeust of BFD bootstrap.2380 BfdNoReply MplsOam_Packet_WorkingRepSent_BfdNoReply2381}2382func (workingRepSent *MplsOam_Packet_WorkingRepSent) GetEntityData() *types.CommonEntityData {2383 workingRepSent.EntityData.YFilter = workingRepSent.YFilter2384 workingRepSent.EntityData.YangName = "working-rep-sent"2385 workingRepSent.EntityData.BundleName = "cisco_ios_xr"2386 workingRepSent.EntityData.ParentYangName = "packet"2387 workingRepSent.EntityData.SegmentPath = "working-rep-sent"2388 workingRepSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/" + workingRepSent.EntityData.SegmentPath2389 workingRepSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2390 workingRepSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2391 workingRepSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2392 workingRepSent.EntityData.Children = types.NewOrderedMap()2393 workingRepSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &workingRepSent.TransmitGood})2394 workingRepSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &workingRepSent.TransmitDrop})2395 workingRepSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &workingRepSent.TransmitBfdGood})2396 workingRepSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &workingRepSent.BfdNoReply})2397 workingRepSent.EntityData.Leafs = types.NewOrderedMap()2398 workingRepSent.EntityData.YListKeys = []string {}2399 return &(workingRepSent.EntityData)2400}2401// MplsOam_Packet_WorkingRepSent_TransmitGood2402// Transmit good packets2403type MplsOam_Packet_WorkingRepSent_TransmitGood struct {2404 EntityData types.CommonEntityData2405 YFilter yfilter.YFilter2406 // Packet counter. The type is interface{} with range:2407 // 0..18446744073709551615.2408 Packets interface{}2409 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2410 // Units are byte.2411 Bytes interface{}2412}2413func (transmitGood *MplsOam_Packet_WorkingRepSent_TransmitGood) GetEntityData() *types.CommonEntityData {2414 transmitGood.EntityData.YFilter = transmitGood.YFilter2415 transmitGood.EntityData.YangName = "transmit-good"2416 transmitGood.EntityData.BundleName = "cisco_ios_xr"2417 transmitGood.EntityData.ParentYangName = "working-rep-sent"2418 transmitGood.EntityData.SegmentPath = "transmit-good"2419 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-rep-sent/" + transmitGood.EntityData.SegmentPath2420 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2421 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2422 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2423 transmitGood.EntityData.Children = types.NewOrderedMap()2424 transmitGood.EntityData.Leafs = types.NewOrderedMap()2425 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})2426 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})2427 transmitGood.EntityData.YListKeys = []string {}2428 return &(transmitGood.EntityData)2429}2430// MplsOam_Packet_WorkingRepSent_TransmitDrop2431// Transmit drop packets2432type MplsOam_Packet_WorkingRepSent_TransmitDrop struct {2433 EntityData types.CommonEntityData2434 YFilter yfilter.YFilter2435 // Packet counter. The type is interface{} with range:2436 // 0..18446744073709551615.2437 Packets interface{}2438 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2439 // Units are byte.2440 Bytes interface{}2441}2442func (transmitDrop *MplsOam_Packet_WorkingRepSent_TransmitDrop) GetEntityData() *types.CommonEntityData {2443 transmitDrop.EntityData.YFilter = transmitDrop.YFilter2444 transmitDrop.EntityData.YangName = "transmit-drop"2445 transmitDrop.EntityData.BundleName = "cisco_ios_xr"2446 transmitDrop.EntityData.ParentYangName = "working-rep-sent"2447 transmitDrop.EntityData.SegmentPath = "transmit-drop"2448 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-rep-sent/" + transmitDrop.EntityData.SegmentPath2449 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2450 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2451 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2452 transmitDrop.EntityData.Children = types.NewOrderedMap()2453 transmitDrop.EntityData.Leafs = types.NewOrderedMap()2454 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})2455 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})2456 transmitDrop.EntityData.YListKeys = []string {}2457 return &(transmitDrop.EntityData)2458}2459// MplsOam_Packet_WorkingRepSent_TransmitBfdGood2460// Transmit good BFD request packets2461type MplsOam_Packet_WorkingRepSent_TransmitBfdGood struct {2462 EntityData types.CommonEntityData2463 YFilter yfilter.YFilter2464 // Packet counter. The type is interface{} with range:2465 // 0..18446744073709551615.2466 Packets interface{}2467 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2468 // Units are byte.2469 Bytes interface{}2470}2471func (transmitBfdGood *MplsOam_Packet_WorkingRepSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {2472 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter2473 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"2474 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"2475 transmitBfdGood.EntityData.ParentYangName = "working-rep-sent"2476 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"2477 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-rep-sent/" + transmitBfdGood.EntityData.SegmentPath2478 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2479 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2480 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2481 transmitBfdGood.EntityData.Children = types.NewOrderedMap()2482 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()2483 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})2484 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})2485 transmitBfdGood.EntityData.YListKeys = []string {}2486 return &(transmitBfdGood.EntityData)2487}2488// MplsOam_Packet_WorkingRepSent_BfdNoReply2489// No Reply action for echo reqeust of BFD2490// bootstrap2491type MplsOam_Packet_WorkingRepSent_BfdNoReply struct {2492 EntityData types.CommonEntityData2493 YFilter yfilter.YFilter2494 // Packet counter. The type is interface{} with range:2495 // 0..18446744073709551615.2496 Packets interface{}2497 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2498 // Units are byte.2499 Bytes interface{}2500}2501func (bfdNoReply *MplsOam_Packet_WorkingRepSent_BfdNoReply) GetEntityData() *types.CommonEntityData {2502 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter2503 bfdNoReply.EntityData.YangName = "bfd-no-reply"2504 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"2505 bfdNoReply.EntityData.ParentYangName = "working-rep-sent"2506 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"2507 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/working-rep-sent/" + bfdNoReply.EntityData.SegmentPath2508 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2509 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2510 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2511 bfdNoReply.EntityData.Children = types.NewOrderedMap()2512 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()2513 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})2514 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})2515 bfdNoReply.EntityData.YListKeys = []string {}2516 return &(bfdNoReply.EntityData)2517}2518// MplsOam_Packet_ProtectReqSent2519// Protect Request Packet transmit counts2520type MplsOam_Packet_ProtectReqSent struct {2521 EntityData types.CommonEntityData2522 YFilter yfilter.YFilter2523 // Transmit good packets.2524 TransmitGood MplsOam_Packet_ProtectReqSent_TransmitGood2525 // Transmit drop packets.2526 TransmitDrop MplsOam_Packet_ProtectReqSent_TransmitDrop2527 // Transmit good BFD request packets.2528 TransmitBfdGood MplsOam_Packet_ProtectReqSent_TransmitBfdGood2529 // No Reply action for echo reqeust of BFD bootstrap.2530 BfdNoReply MplsOam_Packet_ProtectReqSent_BfdNoReply2531}2532func (protectReqSent *MplsOam_Packet_ProtectReqSent) GetEntityData() *types.CommonEntityData {2533 protectReqSent.EntityData.YFilter = protectReqSent.YFilter2534 protectReqSent.EntityData.YangName = "protect-req-sent"2535 protectReqSent.EntityData.BundleName = "cisco_ios_xr"2536 protectReqSent.EntityData.ParentYangName = "packet"2537 protectReqSent.EntityData.SegmentPath = "protect-req-sent"2538 protectReqSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/" + protectReqSent.EntityData.SegmentPath2539 protectReqSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2540 protectReqSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2541 protectReqSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2542 protectReqSent.EntityData.Children = types.NewOrderedMap()2543 protectReqSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &protectReqSent.TransmitGood})2544 protectReqSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &protectReqSent.TransmitDrop})2545 protectReqSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &protectReqSent.TransmitBfdGood})2546 protectReqSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &protectReqSent.BfdNoReply})2547 protectReqSent.EntityData.Leafs = types.NewOrderedMap()2548 protectReqSent.EntityData.YListKeys = []string {}2549 return &(protectReqSent.EntityData)2550}2551// MplsOam_Packet_ProtectReqSent_TransmitGood2552// Transmit good packets2553type MplsOam_Packet_ProtectReqSent_TransmitGood struct {2554 EntityData types.CommonEntityData2555 YFilter yfilter.YFilter2556 // Packet counter. The type is interface{} with range:2557 // 0..18446744073709551615.2558 Packets interface{}2559 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2560 // Units are byte.2561 Bytes interface{}2562}2563func (transmitGood *MplsOam_Packet_ProtectReqSent_TransmitGood) GetEntityData() *types.CommonEntityData {2564 transmitGood.EntityData.YFilter = transmitGood.YFilter2565 transmitGood.EntityData.YangName = "transmit-good"2566 transmitGood.EntityData.BundleName = "cisco_ios_xr"2567 transmitGood.EntityData.ParentYangName = "protect-req-sent"2568 transmitGood.EntityData.SegmentPath = "transmit-good"2569 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/protect-req-sent/" + transmitGood.EntityData.SegmentPath2570 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2571 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2572 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2573 transmitGood.EntityData.Children = types.NewOrderedMap()2574 transmitGood.EntityData.Leafs = types.NewOrderedMap()2575 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})2576 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})2577 transmitGood.EntityData.YListKeys = []string {}2578 return &(transmitGood.EntityData)2579}2580// MplsOam_Packet_ProtectReqSent_TransmitDrop2581// Transmit drop packets2582type MplsOam_Packet_ProtectReqSent_TransmitDrop struct {2583 EntityData types.CommonEntityData2584 YFilter yfilter.YFilter2585 // Packet counter. The type is interface{} with range:2586 // 0..18446744073709551615.2587 Packets interface{}2588 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2589 // Units are byte.2590 Bytes interface{}2591}2592func (transmitDrop *MplsOam_Packet_ProtectReqSent_TransmitDrop) GetEntityData() *types.CommonEntityData {2593 transmitDrop.EntityData.YFilter = transmitDrop.YFilter2594 transmitDrop.EntityData.YangName = "transmit-drop"2595 transmitDrop.EntityData.BundleName = "cisco_ios_xr"2596 transmitDrop.EntityData.ParentYangName = "protect-req-sent"2597 transmitDrop.EntityData.SegmentPath = "transmit-drop"2598 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/protect-req-sent/" + transmitDrop.EntityData.SegmentPath2599 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2600 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2601 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2602 transmitDrop.EntityData.Children = types.NewOrderedMap()2603 transmitDrop.EntityData.Leafs = types.NewOrderedMap()2604 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})2605 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})2606 transmitDrop.EntityData.YListKeys = []string {}2607 return &(transmitDrop.EntityData)2608}2609// MplsOam_Packet_ProtectReqSent_TransmitBfdGood2610// Transmit good BFD request packets2611type MplsOam_Packet_ProtectReqSent_TransmitBfdGood struct {2612 EntityData types.CommonEntityData2613 YFilter yfilter.YFilter2614 // Packet counter. The type is interface{} with range:2615 // 0..18446744073709551615.2616 Packets interface{}2617 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2618 // Units are byte.2619 Bytes interface{}2620}2621func (transmitBfdGood *MplsOam_Packet_ProtectReqSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {2622 transmitBfdGood.EntityData.YFilter = transmitBfdGood.YFilter2623 transmitBfdGood.EntityData.YangName = "transmit-bfd-good"2624 transmitBfdGood.EntityData.BundleName = "cisco_ios_xr"2625 transmitBfdGood.EntityData.ParentYangName = "protect-req-sent"2626 transmitBfdGood.EntityData.SegmentPath = "transmit-bfd-good"2627 transmitBfdGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/protect-req-sent/" + transmitBfdGood.EntityData.SegmentPath2628 transmitBfdGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2629 transmitBfdGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2630 transmitBfdGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2631 transmitBfdGood.EntityData.Children = types.NewOrderedMap()2632 transmitBfdGood.EntityData.Leafs = types.NewOrderedMap()2633 transmitBfdGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitBfdGood.Packets})2634 transmitBfdGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitBfdGood.Bytes})2635 transmitBfdGood.EntityData.YListKeys = []string {}2636 return &(transmitBfdGood.EntityData)2637}2638// MplsOam_Packet_ProtectReqSent_BfdNoReply2639// No Reply action for echo reqeust of BFD2640// bootstrap2641type MplsOam_Packet_ProtectReqSent_BfdNoReply struct {2642 EntityData types.CommonEntityData2643 YFilter yfilter.YFilter2644 // Packet counter. The type is interface{} with range:2645 // 0..18446744073709551615.2646 Packets interface{}2647 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2648 // Units are byte.2649 Bytes interface{}2650}2651func (bfdNoReply *MplsOam_Packet_ProtectReqSent_BfdNoReply) GetEntityData() *types.CommonEntityData {2652 bfdNoReply.EntityData.YFilter = bfdNoReply.YFilter2653 bfdNoReply.EntityData.YangName = "bfd-no-reply"2654 bfdNoReply.EntityData.BundleName = "cisco_ios_xr"2655 bfdNoReply.EntityData.ParentYangName = "protect-req-sent"2656 bfdNoReply.EntityData.SegmentPath = "bfd-no-reply"2657 bfdNoReply.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/protect-req-sent/" + bfdNoReply.EntityData.SegmentPath2658 bfdNoReply.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2659 bfdNoReply.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2660 bfdNoReply.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2661 bfdNoReply.EntityData.Children = types.NewOrderedMap()2662 bfdNoReply.EntityData.Leafs = types.NewOrderedMap()2663 bfdNoReply.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", bfdNoReply.Packets})2664 bfdNoReply.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", bfdNoReply.Bytes})2665 bfdNoReply.EntityData.YListKeys = []string {}2666 return &(bfdNoReply.EntityData)2667}2668// MplsOam_Packet_ProtectRepSent2669// Protect Reply Packet transmit counts2670type MplsOam_Packet_ProtectRepSent struct {2671 EntityData types.CommonEntityData2672 YFilter yfilter.YFilter2673 // Transmit good packets.2674 TransmitGood MplsOam_Packet_ProtectRepSent_TransmitGood2675 // Transmit drop packets.2676 TransmitDrop MplsOam_Packet_ProtectRepSent_TransmitDrop2677 // Transmit good BFD request packets.2678 TransmitBfdGood MplsOam_Packet_ProtectRepSent_TransmitBfdGood2679 // No Reply action for echo reqeust of BFD bootstrap.2680 BfdNoReply MplsOam_Packet_ProtectRepSent_BfdNoReply2681}2682func (protectRepSent *MplsOam_Packet_ProtectRepSent) GetEntityData() *types.CommonEntityData {2683 protectRepSent.EntityData.YFilter = protectRepSent.YFilter2684 protectRepSent.EntityData.YangName = "protect-rep-sent"2685 protectRepSent.EntityData.BundleName = "cisco_ios_xr"2686 protectRepSent.EntityData.ParentYangName = "packet"2687 protectRepSent.EntityData.SegmentPath = "protect-rep-sent"2688 protectRepSent.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/" + protectRepSent.EntityData.SegmentPath2689 protectRepSent.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2690 protectRepSent.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2691 protectRepSent.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2692 protectRepSent.EntityData.Children = types.NewOrderedMap()2693 protectRepSent.EntityData.Children.Append("transmit-good", types.YChild{"TransmitGood", &protectRepSent.TransmitGood})2694 protectRepSent.EntityData.Children.Append("transmit-drop", types.YChild{"TransmitDrop", &protectRepSent.TransmitDrop})2695 protectRepSent.EntityData.Children.Append("transmit-bfd-good", types.YChild{"TransmitBfdGood", &protectRepSent.TransmitBfdGood})2696 protectRepSent.EntityData.Children.Append("bfd-no-reply", types.YChild{"BfdNoReply", &protectRepSent.BfdNoReply})2697 protectRepSent.EntityData.Leafs = types.NewOrderedMap()2698 protectRepSent.EntityData.YListKeys = []string {}2699 return &(protectRepSent.EntityData)2700}2701// MplsOam_Packet_ProtectRepSent_TransmitGood2702// Transmit good packets2703type MplsOam_Packet_ProtectRepSent_TransmitGood struct {2704 EntityData types.CommonEntityData2705 YFilter yfilter.YFilter2706 // Packet counter. The type is interface{} with range:2707 // 0..18446744073709551615.2708 Packets interface{}2709 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2710 // Units are byte.2711 Bytes interface{}2712}2713func (transmitGood *MplsOam_Packet_ProtectRepSent_TransmitGood) GetEntityData() *types.CommonEntityData {2714 transmitGood.EntityData.YFilter = transmitGood.YFilter2715 transmitGood.EntityData.YangName = "transmit-good"2716 transmitGood.EntityData.BundleName = "cisco_ios_xr"2717 transmitGood.EntityData.ParentYangName = "protect-rep-sent"2718 transmitGood.EntityData.SegmentPath = "transmit-good"2719 transmitGood.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/protect-rep-sent/" + transmitGood.EntityData.SegmentPath2720 transmitGood.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2721 transmitGood.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2722 transmitGood.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2723 transmitGood.EntityData.Children = types.NewOrderedMap()2724 transmitGood.EntityData.Leafs = types.NewOrderedMap()2725 transmitGood.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitGood.Packets})2726 transmitGood.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitGood.Bytes})2727 transmitGood.EntityData.YListKeys = []string {}2728 return &(transmitGood.EntityData)2729}2730// MplsOam_Packet_ProtectRepSent_TransmitDrop2731// Transmit drop packets2732type MplsOam_Packet_ProtectRepSent_TransmitDrop struct {2733 EntityData types.CommonEntityData2734 YFilter yfilter.YFilter2735 // Packet counter. The type is interface{} with range:2736 // 0..18446744073709551615.2737 Packets interface{}2738 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2739 // Units are byte.2740 Bytes interface{}2741}2742func (transmitDrop *MplsOam_Packet_ProtectRepSent_TransmitDrop) GetEntityData() *types.CommonEntityData {2743 transmitDrop.EntityData.YFilter = transmitDrop.YFilter2744 transmitDrop.EntityData.YangName = "transmit-drop"2745 transmitDrop.EntityData.BundleName = "cisco_ios_xr"2746 transmitDrop.EntityData.ParentYangName = "protect-rep-sent"2747 transmitDrop.EntityData.SegmentPath = "transmit-drop"2748 transmitDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-mpls-oam-oper:mpls-oam/packet/protect-rep-sent/" + transmitDrop.EntityData.SegmentPath2749 transmitDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()2750 transmitDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()2751 transmitDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()2752 transmitDrop.EntityData.Children = types.NewOrderedMap()2753 transmitDrop.EntityData.Leafs = types.NewOrderedMap()2754 transmitDrop.EntityData.Leafs.Append("packets", types.YLeaf{"Packets", transmitDrop.Packets})2755 transmitDrop.EntityData.Leafs.Append("bytes", types.YLeaf{"Bytes", transmitDrop.Bytes})2756 transmitDrop.EntityData.YListKeys = []string {}2757 return &(transmitDrop.EntityData)2758}2759// MplsOam_Packet_ProtectRepSent_TransmitBfdGood2760// Transmit good BFD request packets2761type MplsOam_Packet_ProtectRepSent_TransmitBfdGood struct {2762 EntityData types.CommonEntityData2763 YFilter yfilter.YFilter2764 // Packet counter. The type is interface{} with range:2765 // 0..18446744073709551615.2766 Packets interface{}2767 // Byte counter. The type is interface{} with range: 0..18446744073709551615.2768 // Units are byte.2769 Bytes interface{}2770}2771func (transmitBfdGood *MplsOam_Packet_ProtectRepSent_TransmitBfdGood) GetEntityData() *types.CommonEntityData {...

Full Screen

Full Screen

configmaps_test.go

Source:configmaps_test.go Github

copy

Full Screen

1package configs2import (3 "testing"4 v1 "k8s.io/api/core/v1"5)6func TestParseConfigMapWithAppProtectCompressedRequestsAction(t *testing.T) {7 tests := []struct {8 action string9 expect string10 msg string11 }{12 {13 action: "pass",14 expect: "pass",15 msg: "valid action pass",16 },17 {18 action: "drop",19 expect: "drop",20 msg: "valid action drop",21 },22 {23 action: "invalid",24 expect: "",25 msg: "invalid action",26 },27 {28 action: "",29 expect: "",30 msg: "empty action",31 },32 }33 nginxPlus := true34 hasAppProtect := true35 hasAppProtectDos := false36 for _, test := range tests {37 cm := &v1.ConfigMap{38 Data: map[string]string{39 "app-protect-compressed-requests-action": test.action,40 },41 }42 result := ParseConfigMap(cm, nginxPlus, hasAppProtect, hasAppProtectDos)43 if result.MainAppProtectCompressedRequestsAction != test.expect {44 t.Errorf("ParseConfigMap() returned %q but expected %q for the case %s", result.MainAppProtectCompressedRequestsAction, test.expect, test.msg)45 }46 }47}...

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import "fmt"2import "gopkg.in/src-d/go-git.v4"3import "gopkg.in/src-d/go-git.v4/plumbing/object"4import "gopkg.in/src-d/go-git.v4/storage/memory"5import "gopkg.in/src-d/go-git.v4/plumbing"6import "gopkg.in/src-d/go-git.v4/plumbing/cache"7import "gopkg.in/src-d/go-git.v4/plumbing/format/gitignore"8import "gopkg.in/src-d/go-git.v4/plumbing/transport"9import "gopkg.in/src-d/go-git.v4/plumbing/transport/http"10import "gopkg.in/src-d/go-git.v4/plumbing/transport/ssh"11import "gopkg.in/src-d/go-git.v4/plumbing/transport/client"12import "gopkg.in/src-d/go-git.v4/plumbing/transport/file"13import "gopkg.in/src-d/go-git.v4/plumbing/transport/common"14import "gopkg.in/src-d/go-git.v4/plumbing/transport/ssh/terminal"15import "gopkg.in/src-d/go-git.v4/plumbing/format/packp"16import "gopkg.in/src-d/go-git.v4/plumbing/format/packp/capability"17import "gopkg.in/src-d/go-git.v4/plumbing/format/packp/sideband"18import "gopkg.in/src-d/go-git.v4/plumbing/format/packp/sideband/common"19import "gopkg.in/src-d/go-git.v4/plumbing/format/packp/sideband/progress"20import "gopkg.in/src-d/go-git.v4/plumbing/format/packp/sideband/progress/common"21import "gopkg.in/src-d/go-git.v4/plumbing/format/packfile"22import "gopkg.in/src-d/go-git.v4/plumbing/format/index"23import "gopkg.in/src-d/go-git.v4/plumbing/format/pktline"24import "gopkg.in/src-d/go-git.v4/plumbing/format/pktline/common"25import "gopkg.in/src-d/go-git.v4/plumbing/format/idxfile"26import "gopkg.in/src-d/go-git.v4/plumbing/format/packfile/common"27import "gopkg.in/src-d/go-git.v4/plumbing/format/packfile/internal"

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import "fmt"2func main() {3 fmt.Println("Hello, World!")4 protect.Drop()5}6import "fmt"7func main() {8 fmt.Println("Hello, World!")9 protect.Drop()10}11import "fmt"12func main() {13 fmt.Println("Hello, World!")14 protect.Drop()15}16import "fmt"17func main() {18 fmt.Println("Hello, World!")19 protect.Drop()20}21import "fmt"22func main() {23 fmt.Println("Hello, World!")24 protect.Drop()25}26import "fmt"27func main() {28 fmt.Println("Hello, World!")29 protect.Drop()30}31import "fmt"32func main() {33 fmt.Println("Hello, World!")34 protect.Drop()35}36import "fmt"37func main() {38 fmt.Println("Hello, World!")39 protect.Drop()40}41import "fmt"42func main() {43 fmt.Println("Hello, World!")44 protect.Drop()45}46import "fmt"47func main() {48 fmt.Println("Hello, World!")49 protect.Drop()50}51import "fmt"52func main() {53 fmt.Println("Hello, World!")54 protect.Drop()55}56import "fmt"57func main() {58 fmt.Println("Hello, World!")59 protect.Drop()60}61import "fmt

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 p := protect.New(1)4 p.Drop()5 fmt.Println(p)6}7import (8func main() {9 p := protect.New(2)10 p.Drop()11 fmt.Println(p)12}13import "fmt"14type Protect struct {15}16func New(n int) *Protect {17 return &Protect{n}18}19func (p *Protect) Drop() {20}21func (p *Protect) String() string {22 return fmt.Sprintf("Protect[%d]", p.num)23}24import (25func TestProtect(t *testing.T) {26 p := New(1)27 p.Drop()28 if p.num != 0 {29 t.Errorf("Drop failed")30 }31}32import "fmt"33type User struct {34}35func CreateUsers() []User {36 return []User{37 {"John"},38 {"Jane"},39 }40}41func main() {42 users := CreateUsers()43 fmt.Println(users)44}

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import "fmt"2func main() {3 p.Drop()4 fmt.Println("Drop")5}6import "fmt"7func main() {8 p.Drop()9 fmt.Println("Drop")10}11import "fmt"12func main() {13 p.Drop()14 fmt.Println("Drop")15}16import "fmt"17func main() {18 p.Drop()19 fmt.Println("Drop")20}21import "fmt"22func main() {23 p.Drop()24 fmt.Println("Drop")25}26import "fmt"27func main() {28 p.Drop()29 fmt.Println("Drop")30}31import "fmt"32func main() {33 p.Drop()34 fmt.Println("Drop")35}36import "fmt"37func main() {38 p.Drop()39 fmt.Println("Drop")40}41import "fmt"42func main() {43 p.Drop()44 fmt.Println("Drop")45}46import "fmt"47func main() {48 p.Drop()49 fmt.Println("Drop")50}51import "fmt"52func main() {53 p.Drop()54 fmt.Println("Drop")55}56import "fmt"57func main() {

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 protect.Drop()4}5import (6func main() {7 protect.Drop()8}9import (10func main() {11 protect.Drop()12}13import (14func main() {15 protect.Drop()16}17import (18func main() {19 protect.Drop()20}21import (22func main() {23 protect.Drop()24}25import (26func main() {27 protect.Drop()28}29import (30func main() {31 protect.Drop()32}33import (34func main() {35 protect.Drop()36}37import (38func main() {39 protect.Drop()40}

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 fmt.Println("Hello, playground")4 protect.Drop()5}6import "fmt"7func Drop() {8 fmt.Println("Drop")9}10 imports fmt11 imports runtime12 imports runtime/internal/atomic13 imports unsafe14 imports runtime15 imports runtime/internal/atomic16 imports unsafe: import cycle not allowed17 imports fmt18 imports runtime19 imports runtime/internal/atomic20 imports unsafe21 imports runtime22 imports runtime/internal/atomic23 imports unsafe: import cycle not allowed24import "fmt"25type Node struct {26}27type LinkedList struct {28}29func (l *LinkedList) Append(v int) {30 if l.Head == nil {31 l.Head = &Node{Value: v}32 }33 for n := l.Head; n != nil; n = n.Next {34 if n.Next == nil {35 n.Next = &Node{Value: v}36 }37 }38}39func main() {40 ll := LinkedList{}41 ll.Append(1)42 ll.Append(2)43 ll.Append(3)44 ll.Append(4)45 ll.Append(5)46 ll.Append(6)47 for n := ll.Head; n != nil; n = n.Next {48 fmt.Println(n.Value)49 }50}

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 p.Init()4 p.Drop()5 fmt.Println("Dropped")6}7import (8type Protect struct {9}10func (p *Protect) Init() {11 fmt.Println("Initialized")12}13func (p *Protect) Drop() {14 time.Sleep(5 * time.Second)15}16import (17func main() {18 p.Init()19 p.Drop()20 fmt.Println("Dropped")21}22import (23func main() {24 p.Init()25 p.Drop()26 fmt.Println("Dropped")27}28In the above example, we have imported the package protect in the 1.go file. The package protect is imported in the same directory as the 1.go file. The package protect can be imported in any file in the same directory

Full Screen

Full Screen

Drop

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 p := runtime.NewProtect()4 p.Add("1.go", "main.main", "main", "main")5 p.Drop("1.go", "main.main", "main", "main")6 _, ok := p.Get("1.go", "main.main", "main", "main")7 fmt.Println(ok)8}9Add()10This method adds a new entry into the protect class. The syntax of the Add() method is:11func (p *Protect) Add(path, name, typ, pkg string)12The Add() method takes the following parameters:13Drop()14This method drops the entry from the protect class. The syntax of the Drop() method is:15func (p *Protect) Drop(path, name, typ, pkg string)16The Drop() method takes the following parameters:17Get()18This method gets the entry from the protect class. The syntax of the Get() method is:19func (p *Protect) Get(path, name, typ, pkg string) (*Entry, bool)20The Get() method takes the following parameters:21The Get() method returns the following values:

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Selenoid automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful