Skip to content

Cannot load module with extension in rpc input with printed context address #2447

@jeremie6wind

Description

@jeremie6wind

Hi,
I have several yang files with extensions working fine.
However, in some specific cases, the module cannot be loaded:

  • when the extension is in a rpc input.

Here is a yang example with an extension in the rpc input loaded with the command:
sysrepoctl -i example.yang -v3

module example {
	yang-version 1.1;
	namespace "urn:examples";
	prefix e;
	extension my-extension {
		description
			"Description.";
	}

	rpc myrpc {
		description
			"Manage troubleshooting reports.";

		input {
			e:my-extension;

			leaf list {
				type empty;
				description
					"List.";
			}
		}
	}
}

  __assert_fail (libc.so.6 + 0x3b517)
  sr_lycc_store_context (libsysrepo.so.8 + 0x5c9cd)
 _sr_install_modules (libsysrepo.so.8 + 0xfd68)

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugBug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions