Merge lp:~junaidali/charms/trusty/plumgrid-director/trunk into lp:~plumgrid-team/charms/trusty/plumgrid-director/trunk

Proposed by Junaid Ali
Status: Merged
Merged at revision: 34
Proposed branch: lp:~junaidali/charms/trusty/plumgrid-director/trunk
Merge into: lp:~plumgrid-team/charms/trusty/plumgrid-director/trunk
Diff against target: 53 lines (+2/-18)
2 files modified
config.yaml (+1/-11)
hooks/pg_dir_utils.py (+1/-7)
To merge this branch: bzr merge lp:~junaidali/charms/trusty/plumgrid-director/trunk
Reviewer Review Type Date Requested Status
Bilal Baqar Approve
Review via email: mp+297608@code.launchpad.net
To post a comment you must log in.
35. By Junaid Ali

Changes:
 Updated fabric-interfaces config description
 Removed unused imports

Revision history for this message
Bilal Baqar (bbaqar) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config.yaml'
--- config.yaml 2016-05-04 06:47:43 +0000
+++ config.yaml 2016-06-19 18:53:40 +0000
@@ -19,22 +19,12 @@
19 type: string19 type: string
20 default: 'juju-br0'20 default: 'juju-br0'
21 description: The interface connected to PLUMgrid Managment network.21 description: The interface connected to PLUMgrid Managment network.
22 os-data-network:
23 type: string
24 default:
25 description: |
26 The IP address and netmask of the OpenStack Data network (e.g.,
27 192.168.0.0/24)
28 .
29 This network will be used for tenant network traffic in overlay
30 networks.
31 fabric-interfaces:22 fabric-interfaces:
32 default: 'MANAGEMENT'23 default: 'MANAGEMENT'
33 type: string24 type: string
34 description: |25 description: |
35 Interfaces that will provide fabric connectivity on the director nodes.26 Interfaces that will provide fabric connectivity on the director nodes.
36 Provided in form of json in a string. These interfaces have to be connected27 Provided in form of json in a string. Default value is MANAGEMENT which
37 to the os-data-network specified in the config. Default value is MANAGEMENT which
38 will configure the management interface as the fabric interface on each28 will configure the management interface as the fabric interface on each
39 director.29 director.
40 network-device-mtu:30 network-device-mtu:
4131
=== modified file 'hooks/pg_dir_utils.py'
--- hooks/pg_dir_utils.py 2016-05-23 10:29:42 +0000
+++ hooks/pg_dir_utils.py 2016-06-19 18:53:40 +0000
@@ -24,8 +24,6 @@
24 get_bridges,24 get_bridges,
25 get_bridge_nics,25 get_bridge_nics,
26 is_ip,26 is_ip,
27 is_address_in_network,
28 get_iface_addr
29)27)
30from charmhelpers.core.host import (28from charmhelpers.core.host import (
31 service_start,29 service_start,
@@ -268,11 +266,7 @@
268 else:266 else:
269 raise ValueError('No fabric interface provided for node')267 raise ValueError('No fabric interface provided for node')
270 if interface_exists(node_fabric_interface):268 if interface_exists(node_fabric_interface):
271 if is_address_in_network(config('os-data-network'),269 return node_fabric_interface
272 get_iface_addr(node_fabric_interface)[0]):
273 return node_fabric_interface
274 else:
275 raise ValueError('Fabric interface not in fabric network')
276 else:270 else:
277 log('Provided fabric interface %s does not exist'271 log('Provided fabric interface %s does not exist'
278 % node_fabric_interface)272 % node_fabric_interface)

Subscribers

People subscribed via source and target branches