ttt.yang 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. list rule {
  52. key "from to";
  53. leaf from {
  54. type string;
  55. }
  56. leaf to {
  57. type string;
  58. }
  59. leaf comment {
  60. type string;
  61. }
  62. leaf-list multi {
  63. ordered-by user;
  64. type string;
  65. }
  66. }
  67. }