ttt.yang 782 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. list acl {
  38. ordered-by user;
  39. key "name";
  40. leaf name {
  41. type string;
  42. }
  43. leaf comment {
  44. type string;
  45. }
  46. leaf-list multi {
  47. ordered-by user;
  48. type string;
  49. }
  50. }
  51. }