~cts-engineering/charms/trusty/neutron-api/neutron-mtu

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/core/sysctl.py

  • Committer: Edward Hope-Morley
  • Date: 2015-02-10 09:52:15 UTC
  • Revision ID: edward.hope-morley@canonical.com-20150210095215-ald95mw9fvhwsq2b
default to no network-device-mtu

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
# You should have received a copy of the GNU Lesser General Public License
18
18
# along with charm-helpers.  If not, see <http://www.gnu.org/licenses/>.
19
19
 
 
20
__author__ = 'Jorge Niedbalski R. <jorge.niedbalski@canonical.com>'
 
21
 
20
22
import yaml
21
23
 
22
24
from subprocess import check_call
27
29
    ERROR,
28
30
)
29
31
 
30
 
__author__ = 'Jorge Niedbalski R. <jorge.niedbalski@canonical.com>'
31
 
 
32
32
 
33
33
def create(sysctl_dict, sysctl_file):
34
34
    """Creates a sysctl.conf file from a YAML associative array