blob: e1d3517558e386535f15a8c4cc3d7bc8ed1fe4c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
import abc
from vnc_api.gen.vnc_api_extension_gen import ResourceApiGen
class Resync(object):
@abc.abstractmethod
def __init__(self, api_server_ip, api_server_port, conf_sections):
pass
#end __init__
@abc.abstractmethod
def resync_domains_projects(self):
"""
Method that implements auditing of projects between orchestration
system and OpenContrail VNC
"""
pass
#end resync_projects
#end class Resync
class ResourceApi(ResourceApiGen):
@abc.abstractmethod
def __init__(self):
pass
#end __init__
@abc.abstractmethod
def transform_request(self, request):
pass
# end transform_request
@abc.abstractmethod
def validate_request(self, request):
pass
# end validate_request
@abc.abstractmethod
def transform_response(self, request, response):
pass
# end transform_response
class NeutronApi(object):
@abc.abstractmethod
def __init__(self):
pass
#end __init__
class AuthBase(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def __init__(self, auth_method, auth_opts):
pass
#end __init__
@abc.abstractmethod
def get_request_auth_app(self):
"""
Middleware to invoke for authentication on every request
"""
pass
#end get_request_auth_app
#end class AuthBase
|