def get_entity_path(self, ancestor):
        path_buffer = ""
        if (not ancestor is None):
            raise YPYModelError("ancestor has to be None for top-level node")

        path_buffer = self.get_segment_path()
        leaf_name_data = LeafDataList()
        if (self.fabric_service_policy.is_set
                or self.fabric_service_policy.yfilter != YFilter.not_set):
            leaf_name_data.append(
                self.fabric_service_policy.get_name_leafdata())

        entity_path = EntityPath(path_buffer, leaf_name_data)
        return entity_path
                def get_entity_path(self, ancestor):
                    path_buffer = ""
                    if (ancestor is None):
                        raise YPYModelError(
                            "ancestor cannot be None as one of the ancestors is a list"
                        )
                    else:
                        path_buffer = _get_relative_entity_path(
                            self, ancestor, path_buffer)

                    leaf_name_data = LeafDataList()

                    entity_path = EntityPath(path_buffer, leaf_name_data)
                    return entity_path
示例#3
0
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "UDP-MIB:UDP-MIB/udpEndpointTable/%s" % self.get_segment_path(
                    )
                else:
                    path_buffer = _get_relative_entity_path(
                        self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.udpendpointlocaladdresstype.is_set
                        or self.udpendpointlocaladdresstype.yfilter !=
                        YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointlocaladdresstype.get_name_leafdata())
                if (self.udpendpointlocaladdress.is_set
                        or self.udpendpointlocaladdress.yfilter !=
                        YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointlocaladdress.get_name_leafdata())
                if (self.udpendpointlocalport.is_set or
                        self.udpendpointlocalport.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointlocalport.get_name_leafdata())
                if (self.udpendpointremoteaddresstype.is_set
                        or self.udpendpointremoteaddresstype.yfilter !=
                        YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointremoteaddresstype.get_name_leafdata())
                if (self.udpendpointremoteaddress.is_set
                        or self.udpendpointremoteaddress.yfilter !=
                        YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointremoteaddress.get_name_leafdata())
                if (self.udpendpointremoteport.is_set or
                        self.udpendpointremoteport.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointremoteport.get_name_leafdata())
                if (self.udpendpointinstance.is_set or
                        self.udpendpointinstance.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointinstance.get_name_leafdata())
                if (self.udpendpointprocess.is_set
                        or self.udpendpointprocess.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.udpendpointprocess.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
示例#4
0
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "Cisco-IOS-XE-cfm-oper:cfm-statistics/cfm-meps/%s" % self.get_segment_path(
                    )
                else:
                    path_buffer = _get_relative_entity_path(
                        self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.domain_name.is_set
                        or self.domain_name.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.domain_name.get_name_leafdata())
                if (self.ma_name.is_set
                        or self.ma_name.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.ma_name.get_name_leafdata())
                if (self.mpid.is_set or self.mpid.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.mpid.get_name_leafdata())
                if (self.ccm_seq_errors.is_set
                        or self.ccm_seq_errors.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.ccm_seq_errors.get_name_leafdata())
                if (self.ccm_transmitted.is_set
                        or self.ccm_transmitted.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.ccm_transmitted.get_name_leafdata())
                if (self.lbr_received_bad.is_set
                        or self.lbr_received_bad.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.lbr_received_bad.get_name_leafdata())
                if (self.lbr_received_ok.is_set
                        or self.lbr_received_ok.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.lbr_received_ok.get_name_leafdata())
                if (self.lbr_seq_errors.is_set
                        or self.lbr_seq_errors.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.lbr_seq_errors.get_name_leafdata())
                if (self.lbr_transmitted.is_set
                        or self.lbr_transmitted.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.lbr_transmitted.get_name_leafdata())
                if (self.ltr_unexpected.is_set
                        or self.ltr_unexpected.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.ltr_unexpected.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "CISCO-CBP-TARGET-MIB:CISCO-CBP-TARGET-MIB/%s" % self.get_segment_path()
            else:
                path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.ccbptpolicyidnext.is_set or self.ccbptpolicyidnext.yfilter != YFilter.not_set):
                leaf_name_data.append(self.ccbptpolicyidnext.get_name_leafdata())
            if (self.ccbpttargettablelastchange.is_set or self.ccbpttargettablelastchange.yfilter != YFilter.not_set):
                leaf_name_data.append(self.ccbpttargettablelastchange.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#6
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-segment-routing-ms-cfg:sr/%s" % self.get_segment_path()
            else:
                path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.lower_bound.is_set or self.lower_bound.yfilter != YFilter.not_set):
                leaf_name_data.append(self.lower_bound.get_name_leafdata())
            if (self.upper_bound.is_set or self.upper_bound.yfilter != YFilter.not_set):
                leaf_name_data.append(self.upper_bound.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "CISCO-AAA-SESSION-MIB:CISCO-AAA-SESSION-MIB/%s" % self.get_segment_path()
            else:
                path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.casnactivetableentries.is_set or self.casnactivetableentries.yfilter != YFilter.not_set):
                leaf_name_data.append(self.casnactivetableentries.get_name_leafdata())
            if (self.casnactivetablehighwatermark.is_set or self.casnactivetablehighwatermark.yfilter != YFilter.not_set):
                leaf_name_data.append(self.casnactivetablehighwatermark.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#8
0
                def get_entity_path(self, ancestor):
                    path_buffer = ""
                    if (ancestor is None):
                        raise YPYModelError("ancestor cannot be None as one of the ancestors is a list")
                    else:
                        path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

                    leaf_name_data = LeafDataList()
                    if (self.address.is_set or self.address.yfilter != YFilter.not_set):
                        leaf_name_data.append(self.address.get_name_leafdata())
                    if (self.prefix_length.is_set or self.prefix_length.yfilter != YFilter.not_set):
                        leaf_name_data.append(self.prefix_length.get_name_leafdata())

                    entity_path = EntityPath(path_buffer, leaf_name_data)
                    return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "CISCO-AAA-SESSION-MIB:CISCO-AAA-SESSION-MIB/%s" % self.get_segment_path()
            else:
                path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.casndisconnectedsessions.is_set or self.casndisconnectedsessions.yfilter != YFilter.not_set):
                leaf_name_data.append(self.casndisconnectedsessions.get_name_leafdata())
            if (self.casntotalsessions.is_set or self.casntotalsessions.yfilter != YFilter.not_set):
                leaf_name_data.append(self.casntotalsessions.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#10
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-infra-infra-cfg:banners/%s" % self.get_segment_path()
            else:
                path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.banner_name.is_set or self.banner_name.yfilter != YFilter.not_set):
                leaf_name_data.append(self.banner_name.get_name_leafdata())
            if (self.banner_text.is_set or self.banner_text.yfilter != YFilter.not_set):
                leaf_name_data.append(self.banner_text.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "CISCO-IPSEC-POLICY-MAP-MIB:CISCO-IPSEC-POLICY-MAP-MIB/ikePolMapTable/%s" % self.get_segment_path()
                else:
                    path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.ikepolmaptunindex.is_set or self.ikepolmaptunindex.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.ikepolmaptunindex.get_name_leafdata())
                if (self.ikepolmappolicynum.is_set or self.ikepolmappolicynum.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.ikepolmappolicynum.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
示例#12
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-ip-udp-cfg:ip-udp/%s" % self.get_segment_path()
            else:
                path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.udp_in_q_threads.is_set or self.udp_in_q_threads.yfilter != YFilter.not_set):
                leaf_name_data.append(self.udp_in_q_threads.get_name_leafdata())
            if (self.udp_out_q_threads.is_set or self.udp_out_q_threads.yfilter != YFilter.not_set):
                leaf_name_data.append(self.udp_out_q_threads.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "ietf-restconf-monitoring:restconf-state/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()

            leaf_name_data.extend(self.capability.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#14
0
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "Cisco-IOS-XR-cmproxy-oper:sdr-inventory-vm/nodes/%s" % self.get_segment_path(
                    )
                else:
                    path_buffer = _get_relative_entity_path(
                        self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.name.is_set or self.name.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.name.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
示例#15
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-ncs1k-mxp-cfg:hardware-module/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.location.is_set
                    or self.location.yfilter != YFilter.not_set):
                leaf_name_data.append(self.location.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#16
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "openconfig-vlan:vlans/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.vlan_id.is_set
                    or self.vlan_id.yfilter != YFilter.not_set):
                leaf_name_data.append(self.vlan_id.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-ncs5k-fea-pfilter-nonatomic-cfg:hardware/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.atomic_disable.is_set
                    or self.atomic_disable.yfilter != YFilter.not_set):
                leaf_name_data.append(self.atomic_disable.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#18
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-shellutil-filesystem-oper:file-system/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.node_name.is_set
                    or self.node_name.yfilter != YFilter.not_set):
                leaf_name_data.append(self.node_name.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#19
0
    def get_entity_path(self, ancestor):
        path_buffer = ""
        if (not ancestor is None):
            raise YPYModelError("ancestor has to be None for top-level node")

        path_buffer = self.get_segment_path()
        leaf_name_data = LeafDataList()
        if (self.app_reg_delay_disable.is_set or self.app_reg_delay_disable.yfilter != YFilter.not_set):
            leaf_name_data.append(self.app_reg_delay_disable.get_name_leafdata())
        if (self.mpls_entropy_label.is_set or self.mpls_entropy_label.yfilter != YFilter.not_set):
            leaf_name_data.append(self.mpls_entropy_label.get_name_leafdata())
        if (self.mpls_ip_ttl_propagate_disable.is_set or self.mpls_ip_ttl_propagate_disable.yfilter != YFilter.not_set):
            leaf_name_data.append(self.mpls_ip_ttl_propagate_disable.get_name_leafdata())

        entity_path = EntityPath(path_buffer, leaf_name_data)
        return entity_path
示例#20
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XE-mdt-cfg:mdt-subscriptions/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.subscription_id.is_set
                    or self.subscription_id.yfilter != YFilter.not_set):
                leaf_name_data.append(self.subscription_id.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "Cisco-IOS-XR-ethernet-lldp-cfg:lldp/tlv-select/%s" % self.get_segment_path(
                    )
                else:
                    path_buffer = _get_relative_entity_path(
                        self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.disable.is_set
                        or self.disable.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.disable.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-man-netconf-cfg:netconf-yang/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.rate_limit.is_set
                    or self.rate_limit.yfilter != YFilter.not_set):
                leaf_name_data.append(self.rate_limit.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-lib-keychain-act:master-key-add/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.new_key.is_set
                    or self.new_key.yfilter != YFilter.not_set):
                leaf_name_data.append(self.new_key.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "Cisco-IOS-XR-fretta-bcm-dpa-drop-stats-oper:drop/nodes/%s" % self.get_segment_path(
                    )
                else:
                    path_buffer = _get_relative_entity_path(
                        self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.node_name.is_set
                        or self.node_name.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.node_name.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-ncs5500-coherent-portmode-oper:controller-port-mode/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.interface_name.is_set
                    or self.interface_name.yfilter != YFilter.not_set):
                leaf_name_data.append(self.interface_name.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#26
0
        def get_entity_path(self, ancestor):
            path_buffer = ""
            if (ancestor is None):
                path_buffer = "Cisco-IOS-XR-ip-icmp-cfg:icmp/%s" % self.get_segment_path(
                )
            else:
                path_buffer = _get_relative_entity_path(
                    self, ancestor, path_buffer)

            leaf_name_data = LeafDataList()
            if (self.protocol_type.is_set
                    or self.protocol_type.yfilter != YFilter.not_set):
                leaf_name_data.append(self.protocol_type.get_name_leafdata())

            entity_path = EntityPath(path_buffer, leaf_name_data)
            return entity_path
示例#27
0
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "Cisco-IOS-XR-subscriber-accounting-cfg:subscriber-accounting/prepaid-configurations/%s" % self.get_segment_path(
                    )
                else:
                    path_buffer = _get_relative_entity_path(
                        self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.prepaid_config_name.is_set or
                        self.prepaid_config_name.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.prepaid_config_name.get_name_leafdata())
                if (self.accounting_method_list.is_set
                        or self.accounting_method_list.yfilter !=
                        YFilter.not_set):
                    leaf_name_data.append(
                        self.accounting_method_list.get_name_leafdata())
                if (self.author_method_list.is_set
                        or self.author_method_list.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.author_method_list.get_name_leafdata())
                if (self.password.is_set
                        or self.password.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.password.get_name_leafdata())
                if (self.time_hold.is_set
                        or self.time_hold.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.time_hold.get_name_leafdata())
                if (self.time_threshold.is_set
                        or self.time_threshold.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.time_threshold.get_name_leafdata())
                if (self.time_valid.is_set
                        or self.time_valid.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.time_valid.get_name_leafdata())
                if (self.traffic_direction.is_set
                        or self.traffic_direction.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.traffic_direction.get_name_leafdata())
                if (self.volume_threshold.is_set
                        or self.volume_threshold.yfilter != YFilter.not_set):
                    leaf_name_data.append(
                        self.volume_threshold.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
                def get_entity_path(self, ancestor):
                    path_buffer = ""
                    if (ancestor is None):
                        path_buffer = "Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global/unnumbered/mpls/%s" % self.get_segment_path(
                        )
                    else:
                        path_buffer = _get_relative_entity_path(
                            self, ancestor, path_buffer)

                    leaf_name_data = LeafDataList()
                    if (self.interface.is_set
                            or self.interface.yfilter != YFilter.not_set):
                        leaf_name_data.append(
                            self.interface.get_name_leafdata())

                    entity_path = EntityPath(path_buffer, leaf_name_data)
                    return entity_path
            def get_entity_path(self, ancestor):
                path_buffer = ""
                if (ancestor is None):
                    path_buffer = "CISCO-ENTITY-EXT-MIB:CISCO-ENTITY-EXT-MIB/ceExtEntityLEDTable/%s" % self.get_segment_path()
                else:
                    path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

                leaf_name_data = LeafDataList()
                if (self.entphysicalindex.is_set or self.entphysicalindex.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.entphysicalindex.get_name_leafdata())
                if (self.ceextentityledtype.is_set or self.ceextentityledtype.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.ceextentityledtype.get_name_leafdata())
                if (self.ceextentityledcolor.is_set or self.ceextentityledcolor.yfilter != YFilter.not_set):
                    leaf_name_data.append(self.ceextentityledcolor.get_name_leafdata())

                entity_path = EntityPath(path_buffer, leaf_name_data)
                return entity_path
示例#30
0
                    def get_entity_path(self, ancestor):
                        path_buffer = ""
                        if (ancestor is None):
                            raise YPYModelError("ancestor cannot be None as one of the ancestors is a list")
                        else:
                            path_buffer = _get_relative_entity_path(self, ancestor, path_buffer)

                        leaf_name_data = LeafDataList()
                        if (self.cryptographic_algorithm.is_set or self.cryptographic_algorithm.yfilter != YFilter.not_set):
                            leaf_name_data.append(self.cryptographic_algorithm.get_name_leafdata())
                        if (self.encryption_type.is_set or self.encryption_type.yfilter != YFilter.not_set):
                            leaf_name_data.append(self.encryption_type.get_name_leafdata())
                        if (self.string.is_set or self.string.yfilter != YFilter.not_set):
                            leaf_name_data.append(self.string.get_name_leafdata())

                        entity_path = EntityPath(path_buffer, leaf_name_data)
                        return entity_path