1
by Antoni Segura Puimedon
Initial commit |
1 |
# vim: tabstop=4 shiftwidth=4 softtabstop=4 filetype=python
|
2 |
#
|
|
3 |
# Copyright (c) 2015 Midokura Europe SARL, All Rights Reserved.
|
|
4 |
# All Rights Reserved
|
|
5 |
#
|
|
6 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
7 |
# not use this file except in compliance with the License. You may obtain
|
|
8 |
# a copy of the License at
|
|
9 |
#
|
|
10 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11 |
#
|
|
12 |
# Unless required by applicable law or agreed to in writing, software
|
|
13 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
14 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
15 |
# License for the specific language governing permissions and limitations
|
|
16 |
# under the License.
|
|
17 |
||
18 |
from charmhelpers.core.services import helpers |
|
19 |
||
20 |
||
21 |
class NovaRelation(helpers.RelationContext): |
|
22 |
name = 'neutron_agents' |
|
23 |
interface = 'quantum' |
|
24 |
||
25 |
def __init__(self, *args, **kwargs): |
|
26 |
self.required_keys = ['keystone_host', |
|
27 |
'service_port', |
|
28 |
'auth_port', |
|
29 |
'service_tenant', |
|
30 |
'service_username', |
|
31 |
'service_password', |
|
32 |
'quantum_host', |
|
33 |
'quantum_port', |
|
34 |
'quantum_url', |
|
35 |
'region', |
|
36 |
'service_protocol', |
|
37 |
'auth_protocol'] |
|
38 |
helpers.RelationContext.__init__(self, *args, **kwargs) |