~corey.bryant/charms/trusty/quantum-gateway/end-of-life

« back to all changes in this revision

Viewing changes to templates/os-charm-phy-nic-mtu.conf

  • Committer: Corey Bryant
  • Date: 2015-07-16 19:59:31 UTC
  • Revision ID: corey.bryant@canonical.com-20150716195931-2p7sloju2305jsfx
quantum-gateway charm has reached end-of-life

Strip all functionality from charm and issue status message
reporting end-of-life and pointing users to neutron-gateway charm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
description "Enabling Quantum external networking port"
2
 
 
3
 
start on runlevel [2345]
4
 
 
5
 
task
6
 
 
7
 
script
8
 
    devs="{{ devs }}"
9
 
    mtu="{{ mtu }}"
10
 
    tmpfile=`mktemp`
11
 
    echo $devs > $tmpfile
12
 
    if [ -n "$mtu" ]; then
13
 
        while read -r dev; do
14
 
            [ -n "$dev" ] || continue
15
 
            rc=0
16
 
            # Try all devices before exiting with error
17
 
            ip link set $dev mtu $mtu || rc=$?
18
 
        done <  $tmpfile
19
 
        rm $tmpfile
20
 
        [ $rc = 0 ] || exit $rc
21
 
    fi
22
 
end script
 
 
b'\\ No newline at end of file'