Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Case #DescriptionJAVA objectNotes
1
  • extension defined in the module
  • extension used inside container statement before all other substatements
  • extension contained argument
Code Block
collapsetrue
module stores {
    yang-version 1.1;
	...
    extension sync-flag{
        description "This extension allows to tag nodes with a sync flag";
        argument "value";
    }

    typedef year {...}

    container bookstore {
        book-store:sync-flag "on";
		...
        leaf bookstore-name {...}
		list books {..}
...
}


Image RemovedImage Added

  • extension declared after all other substatements of container still passed
2
  • extension defined in the module
  • extension used inside a leaf statement (child of a container) before all other substatements
  • extension contained argument
Code Block
collapsetrue
module stores {
    yang-version 1.1;
	...
    extension sync-flag{
        description "This extension allows to tag nodes with a sync flag";
        argument "value";
    }

    typedef year {...}

    container bookstore {
		...
        leaf bookstore-name {
	      book-store:sync-flag "on"; 
		}
		list books {..}
...
}


  • Extension declared after type-statement inside leaf statement (child of container) still passed
3


...