• 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
  • ..
  • templates
  • add_iface.j2
  • alshabib's avatar
    Vagrant box for development use. · 4997cd7c ...
    4997cd7c Browse Files
    vagrant up onosdev sets up a vm with three lxc instances
    which should be used with the lxc cell.
    
    Change-Id: I18b5cc5366efc61f05063798b498559eb49a8eff
    alshabib authored 2016-05-26 22:22:42 +0000
add_iface.j2 334 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash

REPORT_CHANGED=0
if [ $# -gt 0 ]; then
    REPORT_CHANGED=1
fi
CHANGED='false'

FOUND=$(brctl show | grep "^{{ interfaces.hostonly }}" | wc -l)
if [ $FOUND -eq 0 ]; then
    CHANGED='true'
    brctl addif {{ networks.bridge_name }} {{ interfaces.hostonly }}
fi

if [ $REPORT_CHANGED -ne 0 ]; then
    echo -n $CHANGED
fi