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
1=== modified file 'config.yaml'
2--- config.yaml 2016-05-04 06:47:43 +0000
3+++ config.yaml 2016-06-19 18:53:40 +0000
4@@ -19,22 +19,12 @@
5 type: string
6 default: 'juju-br0'
7 description: The interface connected to PLUMgrid Managment network.
8- os-data-network:
9- type: string
10- default:
11- description: |
12- The IP address and netmask of the OpenStack Data network (e.g.,
13- 192.168.0.0/24)
14- .
15- This network will be used for tenant network traffic in overlay
16- networks.
17 fabric-interfaces:
18 default: 'MANAGEMENT'
19 type: string
20 description: |
21 Interfaces that will provide fabric connectivity on the director nodes.
22- Provided in form of json in a string. These interfaces have to be connected
23- to the os-data-network specified in the config. Default value is MANAGEMENT which
24+ Provided in form of json in a string. Default value is MANAGEMENT which
25 will configure the management interface as the fabric interface on each
26 director.
27 network-device-mtu:
28
29=== modified file 'hooks/pg_dir_utils.py'
30--- hooks/pg_dir_utils.py 2016-05-23 10:29:42 +0000
31+++ hooks/pg_dir_utils.py 2016-06-19 18:53:40 +0000
32@@ -24,8 +24,6 @@
33 get_bridges,
34 get_bridge_nics,
35 is_ip,
36- is_address_in_network,
37- get_iface_addr
38 )
39 from charmhelpers.core.host import (
40 service_start,
41@@ -268,11 +266,7 @@
42 else:
43 raise ValueError('No fabric interface provided for node')
44 if interface_exists(node_fabric_interface):
45- if is_address_in_network(config('os-data-network'),
46- get_iface_addr(node_fabric_interface)[0]):
47- return node_fabric_interface
48- else:
49- raise ValueError('Fabric interface not in fabric network')
50+ return node_fabric_interface
51 else:
52 log('Provided fabric interface %s does not exist'
53 % node_fabric_interface)

Subscribers

People subscribed via source and target branches