Skip to content

Commit 23779d6

Browse files
yoooouandybavier
authored andcommitted
Make fabric-refresh in Jenkinsfile
Change-Id: I65e7e5a8669a0cde6f73165d1a3239bf8d0940a0
1 parent 705a156 commit 23779d6

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

Jenkinsfile.newBuildSystem

+2-17
Original file line numberDiff line numberDiff line change
@@ -246,23 +246,8 @@ node ("${deployment_config.dev_node.name}") {
246246
stage ("Generate and load network configuration") {
247247
// Reconnect compute nodes to update the fabric IP in ONOS
248248
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"
266251
}
267252
}
268253
}

0 commit comments

Comments
 (0)