File tree 1 file changed +2
-17
lines changed
1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -246,23 +246,8 @@ node ("${deployment_config.dev_node.name}") {
246
246
stage ("Generate and load network configuration") {
247
247
// Reconnect compute nodes to update the fabric IP in ONOS
248
248
connectFabricAndComputeToOnos()
249
- // Generate network configuration
250
- runHeadNodeCmd("""
251
- cd /opt/cord_profile/
252
- cp fabric-network-cfg.json fabric-network-cfg.json.\$(date +%Y%m%d-%H%M%S)
253
- cord generate > fabric-network-cfg.json
254
- """)
255
- // Install httpie on the head-node
256
- runHeadNodeCmd("sudo pip install httpie")
257
- // Delete old ONOS netcfg
258
- runHeadNodeCmd("http -a onos:rocks DELETE http://onos-fabric:8181/onos/v1/network/configuration/")
259
- // Load new configuration
260
- runHeadNodeCmd("http -a onos:rocks POST http://onos-fabric:8181/onos/v1/network/configuration/ < /opt/cord_profile/fabric-network-cfg.json")
261
- // Restart ONOS apps
262
- runHeadNodeCmd("""
263
- http -a onos:rocks DELETE http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active; sleep 5
264
- http -a onos:rocks POST http://onos-fabric:8181/onos/v1/applications/org.onosproject.segmentrouting/active; sleep 5
265
- """)
249
+ // Refresh fabric configurations
250
+ sh "make fabric-refresh"
266
251
}
267
252
}
268
253
}
You can’t perform that action at this time.
0 commit comments