networkstatic

Untitled

Jul 23rd, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. [
  2. "Open_vSwitch",
  3. {
  4. "rows": [
  5. {
  6. "bridges": [
  7. "uuid",
  8. "e27b52ca-e1de-4cb0-a910-ee42e38cda92"
  9. ]
  10. }
  11. ],
  12. "until": "==",
  13. "where": [
  14. [
  15. "_uuid",
  16. "==",
  17. [
  18. "uuid",
  19. "2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"
  20. ]
  21. ]
  22. ],
  23. "timeout": 0,
  24. "op": "wait",
  25. "table": "Open_vSwitch",
  26. "columns": [
  27. "bridges"
  28. ]
  29. },
  30. {
  31. "rows": [
  32. {
  33. "interfaces": [
  34. "uuid",
  35. "846a45de-1c8b-48dc-ad9b-189368e1bd32"
  36. ]
  37. }
  38. ],
  39. "until": "==",
  40. "where": [
  41. [
  42. "_uuid",
  43. "==",
  44. [
  45. "uuid",
  46. "4f160ba2-dad5-4b1a-bc07-7a4b6d617a49"
  47. ]
  48. ]
  49. ],
  50. "timeout": 0,
  51. "op": "wait",
  52. "table": "Port",
  53. "columns": [
  54. "interfaces"
  55. ]
  56. },
  57. {
  58. "rows": [
  59. {
  60. "interfaces": [
  61. "uuid",
  62. "97056e7f-59ab-47c0-8139-ace0db3a8460"
  63. ]
  64. }
  65. ],
  66. "until": "==",
  67. "where": [
  68. [
  69. "_uuid",
  70. "==",
  71. [
  72. "uuid",
  73. "8f0c035e-6ade-4610-9d4a-bb5cc4fde546"
  74. ]
  75. ]
  76. ],
  77. "timeout": 0,
  78. "op": "wait",
  79. "table": "Port",
  80. "columns": [
  81. "interfaces"
  82. ]
  83. },
  84. {
  85. "rows": [
  86. {
  87. "ports": [
  88. "set",
  89. [
  90. [
  91. "uuid",
  92. "4f160ba2-dad5-4b1a-bc07-7a4b6d617a49"
  93. ],
  94. [
  95. "uuid",
  96. "8f0c035e-6ade-4610-9d4a-bb5cc4fde546"
  97. ]
  98. ]
  99. ]
  100. }
  101. ],
  102. "until": "==",
  103. "where": [
  104. [
  105. "_uuid",
  106. "==",
  107. [
  108. "uuid",
  109. "e27b52ca-e1de-4cb0-a910-ee42e38cda92"
  110. ]
  111. ]
  112. ],
  113. "timeout": 0,
  114. "op": "wait",
  115. "table": "Bridge",
  116. "columns": [
  117. "ports"
  118. ]
  119. },
  120. {
  121. "uuid-name": "row8145a275_9236_4744_96ed_d4556d371066",
  122. "op": "insert",
  123. "table": "Port",
  124. "row": {
  125. "interfaces": [
  126. "named-uuid",
  127. "row15e0a7a2_4760_462d_be13_6719175896a0"
  128. ],
  129. "name": "br1"
  130. }
  131. },
  132. {
  133. "where": [
  134. [
  135. "_uuid",
  136. "==",
  137. [
  138. "uuid",
  139. "2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"
  140. ]
  141. ]
  142. ],
  143. "op": "update",
  144. "table": "Open_vSwitch",
  145. "row": {
  146. "bridges": [
  147. "set",
  148. [
  149. [
  150. "named-uuid",
  151. "rowb5c5e4a3_0803_442a_b2dc_3ecd10c3f218"
  152. ],
  153. [
  154. "uuid",
  155. "e27b52ca-e1de-4cb0-a910-ee42e38cda92"
  156. ]
  157. ]
  158. ]
  159. }
  160. },
  161. {
  162. "uuid-name": "row15e0a7a2_4760_462d_be13_6719175896a0",
  163. "op": "insert",
  164. "table": "Interface",
  165. "row": {
  166. "name": "br1",
  167. "type": "internal"
  168. }
  169. },
  170. {
  171. "uuid-name": "rowb5c5e4a3_0803_442a_b2dc_3ecd10c3f218",
  172. "op": "insert",
  173. "table": "Bridge",
  174. "row": {
  175. "name": "br1",
  176. "ports": [
  177. "named-uuid",
  178. "row8145a275_9236_4744_96ed_d4556d371066"
  179. ]
  180. }
  181. },
  182. {
  183. "mutations": [
  184. [
  185. "next_cfg",
  186. "+=",
  187. 1
  188. ]
  189. ],
  190. "where": [
  191. [
  192. "_uuid",
  193. "==",
  194. [
  195. "uuid",
  196. "2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"
  197. ]
  198. ]
  199. ],
  200. "op": "mutate",
  201. "table": "Open_vSwitch"
  202. },
  203. {
  204. "where": [
  205. [
  206. "_uuid",
  207. "==",
  208. [
  209. "uuid",
  210. "2cfdf9dd-e2a3-46b9-b09d-fbc68f23bc5d"
  211. ]
  212. ]
  213. ],
  214. "op": "select",
  215. "table": "Open_vSwitch",
  216. "columns": [
  217. "next_cfg"
  218. ]
  219. },
  220. {
  221. "comment": "ovs-vsctl: ovs-vsctl -vjsonrpc --db=tcp:172.16.58.170:6634 add-br br1",
  222. "op": "comment"
  223. }
  224. ]
Advertisement
Add Comment
Please, Sign In to add comment