Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-420

YangInstanceIdentifier builder: allow adding PathArgument nodes

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      Adding pre-constructed PathArguments onto a builder can be useful, as it allows us to share object instances with other code.

      Instantiating a builder is advantegeous when we want to pre-construct a YangInstanceIdentifier for reuse.

      Right now I have to do the following:
      newTablesRoot = YangInstanceIdentifier.builder(newPeerPath.node(EMPTY_ADJRIBIN.getIdentifier()).node(TABLES)).build();

      Where I should be able to do the following:

      newTablesRoot = YangInstanceIdentifier.builder(newPeerPath).node(EMPTY_ADJRIBIN.getIdentifier()).node(TABLES).build();

      Which is more efficient.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: