bb7da09624
Change-Id: Ie1b0dac8a8ec1e6d02217fe03159c78a69f6dc5d Closes-Bug: #1317657
26 lines
706 B
Python
26 lines
706 B
Python
# Copyright 2013 IBM Corp.
|
|
|
|
"""
|
|
The class FakeOSNetwork is used to represent the OpenStack Network instance
|
|
"""
|
|
|
|
|
|
class FakeOSNetwork():
|
|
|
|
fakeOSNetworkInstance = dict()
|
|
|
|
def __init__(self):
|
|
|
|
self.fakeOSNetworkInstance[
|
|
'tenant_id'] = "54c0ae7d58484d8e90bd482015db6b61"
|
|
self.fakeOSNetworkInstance[
|
|
'id'] = "272c42ac-fb16-46df-83b0-64dc5aa6032f"
|
|
self.fakeOSNetworkInstance['name'] = "private"
|
|
self.fakeOSNetworkInstance['status'] = "ACTIVE"
|
|
self.fakeOSNetworkInstance['admin_state_up'] = True
|
|
self.fakeOSNetworkInstance['shared'] = False
|
|
|
|
def update(self, **update):
|
|
|
|
self.fakeOSNetworkInstance.update(**update)
|