Initial code drop from Cisco
[nfvbench.git] / nfvbench / tor_client.py
1 #!/usr/bin/env python
2 # Copyright 2016 Cisco Systems, Inc.  All rights reserved.
3 #
4 #    Licensed under the Apache License, Version 2.0 (the "License"); you may
5 #    not use this file except in compliance with the License. You may obtain
6 #    a copy of the License at
7 #
8 #         http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #    Unless required by applicable law or agreed to in writing, software
11 #    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 #    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 #    License for the specific language governing permissions and limitations
14 #    under the License.
15 #
16
17
18 class TORClientException(Exception):
19     pass
20
21
22 class BasicTORClient(object):
23
24     def __init__(self, config):
25         pass
26
27     def get_int_counters(self):
28         return {}
29
30     def get_vni_counters(self, vni):
31         return {}
32
33     def get_vni_interface(self, vni, counters):
34         return None
35
36     def get_vni_for_vlan(self, vlans):
37         return []
38
39     def attach_tg_interfaces(self, network_vlans, switch_ports):
40         pass
41
42     def clear_nve(self):
43         pass
44
45     def clear_interface(self, vni):
46         pass
47
48     def close(self):
49         pass
50
51     def get_version(self):
52         return {}