• This project
    • Loading...
  • Sign in

홍길동 / onos

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • onos
  • utils
  • warden
  • bin
  • destroy-cell
  • Thomas Vachuska's avatar
    Adding ability to balance load between different cell servers. · 5420ba37 ...
    5420ba37
    Adding ability to specify structure/size of the cell.
    
    Change-Id: I5e87c99fe8812ba0a974d7815ab8ddc64193a608
    Thomas Vachuska authored 2016-05-16 16:31:18 +0000
destroy-cell 275 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash
# Destroys an LXC cell with the specified name.

name=$1
spec=$2

nodes=${spec%+*}
mininet=${spec#*+}

cd $(dirname $0)

if [ $mininet -ge 1 ]; then
    ./destroy-node $name-n
fi

let n=1
while [ $n -le $nodes ]; do
    ./destroy-node $name-$n
    let n=n+1
done