Skip to content

leafref path and node #52

Open
Open
@li-pingmao

Description

@li-pingmao

Is there a nAPI to get the SNode the leafref points to? Or the schema xpath of what the leafref points to?

For example:
leaf vlanid {
type leafref {
path ../../../VLAN/VLAN_LIST/vlanid;
}
}

the existing leafref_path() will get "../../../VLAN/VLAN_LIST/vlanid",
can we have APIs:

  1. returns the real xpath of this leafref path, so we can use the returned path to get the SNode
  2. an API to return the SNode this leafref points to?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions