4
@author: Nachi Ueno <ueno.nachi@lab.ntt.co.jp>
7
from boto.resultset import ResultSet
8
from boto.ec2.instance import Reservation
9
from boto.ec2.instance import Group
10
from boto.ec2.instance import Instance
13
class ReservationV6(Reservation):
14
def startElement(self, name, attrs, connection):
15
if name == 'instancesSet':
16
self.instances = ResultSet([('item', InstanceV6)])
18
elif name == 'groupSet':
19
self.groups = ResultSet([('item', Group)])
25
class InstanceV6(Instance):
26
def __init__(self, connection=None):
27
Instance.__init__(self, connection)
28
self.public_dns_name_v6 = None
30
def endElement(self, name, value, connection):
31
Instance.endElement(self, name, value, connection)
32
if name == 'dnsNameV6':
33
self.dns_name_v6 = value