summaryrefslogtreecommitdiff
path: root/novaclient/v2/virtual_interfaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/v2/virtual_interfaces.py')
-rw-r--r--novaclient/v2/virtual_interfaces.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/novaclient/v2/virtual_interfaces.py b/novaclient/v2/virtual_interfaces.py
new file mode 100644
index 0000000..9c04e8d
--- /dev/null
+++ b/novaclient/v2/virtual_interfaces.py
@@ -0,0 +1,33 @@
1# Copyright 2012 OpenStack Foundation
2# 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"""
17Virtual Interfaces (1.1 extension).
18"""
19
20from novaclient import base
21
22
23class VirtualInterface(base.Resource):
24 def __repr__(self):
25 pass
26
27
28class VirtualInterfaceManager(base.ManagerWithFind):
29 resource_class = VirtualInterface
30
31 def list(self, instance_id):
32 return self._list('/servers/%s/os-virtual-interfaces' % instance_id,
33 'virtual_interfaces')