Last modified by Kevin Austin on 2018/11/29 05:19

From version < 17.1 >
edited by Kevin Austin
on 2018/10/23 04:28
To version < 18.1 >
edited by Kevin Austin
on 2018/10/23 04:33
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -85,8 +85,52 @@
85 85  In a browser window, open the Swagger interface: http:~/~/127.0.0.1:8080
86 86  \\Username: kilda
87 87  Password: kilda
88 -\\Swagger allows us to access the northbound interface of OpenKilda through a web browser.
88 +\\Swagger allows us to access the northbound interface of OpenKilda through a web browser. By default, many of the controller features are turned off. In a normal production environment you may want to control what features are available to configure the network. Click on the (% style="font-family:Courier New,Courier,monospace" %)feature-toggles-controller(%%) tab to expand it. Then click on the "GET /features" tab to expand the tab.  In the top-right corner of the tab select "try it out" and then click the blue "Execute" button.
89 89  
90 +(% style="text-align:center" %)
91 +[[image:feature-toggles-controller.jpeg||height="379" width="600"]]
92 +
93 +The following will be returned in the Response body field:
94 +
95 +(% class="box" %)
96 +(((
97 +{
98 + "sync_rules": false,
99 + "reflow_on_switch_activation": true,
100 + "create_flow": false,
101 + "update_flow": false,
102 + "delete_flow": false,
103 + "push_flow": false,
104 + "unpush_flow": false
105 +}
106 +)))
107 +
108 +Most of the features are turned off by default. To enable these features, scroll down to the "POST /features" tab and click on it to expand it. Click on the "try it out" button and then click on the big blue "Execute" button.
109 +
110 +(% style="text-align:center" %)
111 +[[image:post_features.jpeg||height="387" width="600"]]
112 +
113 +
114 +(% class="wikigeneratedid" %)
115 +By default you should have the following example values:
116 +
117 +(% class="box" %)
118 +(((
119 +{
120 + "create_flow": true,
121 + "delete_flow": true,
122 + "push_flow": true,
123 + "reflow_on_switch_activation": true,
124 + "sync_rules": true,
125 + "unpush_flow": true,
126 + "update_flow": true
127 +}
128 +)))
129 +
130 +(% class="wikigeneratedid" %)
131 +Verify that the features were enabled by going back to the "GET /features" tab and clicking on the big blue "Execute" button. Verify that the Response body now lists "true" as the value for all of the features.
132 +
133 +
90 90  = Start Mininet =
91 91  
92 92  In a new terminal window navigate to the home folder where the datacenterConfigurable.py script it located:
©2018 OpenKilda