ttt.yang 566 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. module ttt {
  2. namespace "urn:ttt";
  3. prefix t;
  4. leaf topleaf {
  5. type string;
  6. }
  7. leaf topleaf2 {
  8. type string;
  9. }
  10. leaf topempty {
  11. type empty;
  12. }
  13. container test {
  14. list iface {
  15. key "name";
  16. leaf name {
  17. type string;
  18. }
  19. leaf comment {
  20. type string;
  21. }
  22. leaf-list multi {
  23. type string;
  24. }
  25. leaf type {
  26. type enumeration {
  27. enum ethernet;
  28. enum ppp;
  29. enum dummy;
  30. }
  31. }
  32. leaf empty {
  33. type empty;
  34. }
  35. }
  36. }
  37. }