~landscape/charms/trusty/neutron-api-odl-vpp/trunk

« back to all changes in this revision

Viewing changes to hooks/odl_data.py

  • Committer: Liam Young
  • Date: 2015-06-24 12:44:33 UTC
  • Revision ID: liam.young@canonical.com-20150624124433-7pqnnn8bn5ccvdb8
Fix unit tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import json
2
2
from charmhelpers.core.services import helpers
3
 
from charmhelpers.contrib.openstack import context
4
3
from charmhelpers.core.hookenv import(
5
4
    config,
6
5
)
100
99
    def __init__(self):
101
100
        self['use_syslog'] = config('use-syslog')
102
101
        self['vlan_ranges'] = config('vlan-ranges')
103
 
        self['vlan_ranges'] = config('vlan-ranges')
104
102
        self['overlay_network_type'] = self.get_overlay_network_type()
105
103
 
106
104
    def get_overlay_network_type(self):