You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
4.9 KiB

  1. From b49789f5d32429722542a1a7de4b371b43958a31 Mon Sep 17 00:00:00 2001
  2. From: Donald Sharp <sharpd@cumulusnetworks.com>
  3. Date: Wed, 18 Mar 2020 22:30:28 -0400
  4. Subject: [PATCH] yang: Partially revert code to restore functionality
  5. Partially revert code from commit:
  6. f22b9250853229c93617ffdad139a4762f5f7348
  7. since this broke passive-interface, network and offset-list
  8. commands in rip and ripng
  9. Fixes: #6001
  10. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
  11. ---
  12. yang/frr-eigrpd.yang | 9 +++------
  13. yang/frr-ripd.yang | 27 ++++++++++-----------------
  14. yang/frr-ripngd.yang | 23 +++++++----------------
  15. 3 files changed, 20 insertions(+), 39 deletions(-)
  16. diff --git a/yang/frr-eigrpd.yang b/yang/frr-eigrpd.yang
  17. index 0c62954570..853d823880 100644
  18. --- a/yang/frr-eigrpd.yang
  19. +++ b/yang/frr-eigrpd.yang
  20. @@ -23,11 +23,6 @@ module frr-eigrpd {
  21. description
  22. "This module defines a model for managing FRR eigrpd daemon.";
  23. - revision 2019-09-09 {
  24. - description
  25. - "Changed interface references to use
  26. - frr-interface:interface-ref typedef";
  27. - }
  28. revision 2019-06-19 {
  29. description "Initial revision.";
  30. reference
  31. @@ -99,7 +94,9 @@ module frr-eigrpd {
  32. leaf-list passive-interface {
  33. description "List of suppressed interfaces";
  34. - type frr-interface:interface-ref;
  35. + type string {
  36. + length "1..16";
  37. + }
  38. }
  39. leaf active-time {
  40. diff --git a/yang/frr-ripd.yang b/yang/frr-ripd.yang
  41. index 94a9ebf3e1..07690793f0 100644
  42. --- a/yang/frr-ripd.yang
  43. +++ b/yang/frr-ripd.yang
  44. @@ -24,11 +24,6 @@ module frr-ripd {
  45. description
  46. "This module defines a model for managing FRR ripd daemon.";
  47. - revision 2019-09-09 {
  48. - description
  49. - "Changed interface references to use
  50. - frr-interface:interface-ref typedef";
  51. - }
  52. revision 2017-12-06 {
  53. description
  54. "Initial revision.";
  55. @@ -118,7 +113,9 @@ module frr-ripd {
  56. "Enable RIP on the specified IP network.";
  57. }
  58. leaf-list interface {
  59. - type frr-interface:interface-ref;
  60. + type string {
  61. + length "1..16";
  62. + }
  63. description
  64. "Enable RIP on the specified interface.";
  65. }
  66. @@ -127,15 +124,7 @@ module frr-ripd {
  67. description
  68. "Offset-list to modify route metric.";
  69. leaf interface {
  70. - type union {
  71. - type frr-interface:interface-ref;
  72. - type enumeration {
  73. - enum '*' {
  74. - description
  75. - "Match all interfaces.";
  76. - }
  77. - }
  78. - }
  79. + type string;
  80. description
  81. "Interface to match. Use '*' to match all interfaces.";
  82. }
  83. @@ -179,14 +168,18 @@ module frr-ripd {
  84. }
  85. leaf-list passive-interface {
  86. when "../passive-default = 'false'";
  87. - type frr-interface:interface-ref;
  88. + type string {
  89. + length "1..16";
  90. + }
  91. description
  92. "A list of interfaces where the sending of RIP packets
  93. is disabled.";
  94. }
  95. leaf-list non-passive-interface {
  96. when "../passive-default = 'true'";
  97. - type frr-interface:interface-ref;
  98. + type string {
  99. + length "1..16";
  100. + }
  101. description
  102. "A list of interfaces where the sending of RIP packets
  103. is enabled.";
  104. diff --git a/yang/frr-ripngd.yang b/yang/frr-ripngd.yang
  105. index 831758af86..b341b438a4 100644
  106. --- a/yang/frr-ripngd.yang
  107. +++ b/yang/frr-ripngd.yang
  108. @@ -24,11 +24,6 @@ module frr-ripngd {
  109. description
  110. "This module defines a model for managing FRR ripngd daemon.";
  111. - revision 2019-09-09 {
  112. - description
  113. - "Changed interface references to use
  114. - frr-interface:interface-ref typedef";
  115. - }
  116. revision 2018-11-27 {
  117. description
  118. "Initial revision.";
  119. @@ -76,7 +71,9 @@ module frr-ripngd {
  120. "Enable RIPng on the specified IPv6 network.";
  121. }
  122. leaf-list interface {
  123. - type frr-interface:interface-ref;
  124. + type string {
  125. + length "1..16";
  126. + }
  127. description
  128. "Enable RIPng on the specified interface.";
  129. }
  130. @@ -85,15 +82,7 @@ module frr-ripngd {
  131. description
  132. "Offset-list to modify route metric.";
  133. leaf interface {
  134. - type union {
  135. - type frr-interface:interface-ref;
  136. - type enumeration {
  137. - enum '*' {
  138. - description
  139. - "Match all interfaces.";
  140. - }
  141. - }
  142. - }
  143. + type string;
  144. description
  145. "Interface to match. Use '*' to match all interfaces.";
  146. }
  147. @@ -129,7 +118,9 @@ module frr-ripngd {
  148. }
  149. }
  150. leaf-list passive-interface {
  151. - type frr-interface:interface-ref;
  152. + type string {
  153. + length "1..16";
  154. + }
  155. description
  156. "A list of interfaces where the sending of RIPng packets
  157. is disabled.";