You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2016/10/10 00:01:58 UTC
[04/13] libcloud git commit: Added post_list_id property to
DimensionDataFirewallAddress class
Added post_list_id property to DimensionDataFirewallAddress class
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5327c110
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5327c110
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5327c110
Branch: refs/heads/trunk
Commit: 5327c11048392f06eef901547a94bd899a26169d
Parents: 2672b78
Author: Samuel Chong <sa...@gmail.com>
Authored: Thu Oct 6 11:26:56 2016 +1100
Committer: Samuel Chong <sa...@gmail.com>
Committed: Thu Oct 6 11:26:56 2016 +1100
----------------------------------------------------------------------
libcloud/common/dimensiondata.py | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/5327c110/libcloud/common/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py
index 45f2c5e..af792c3 100644
--- a/libcloud/common/dimensiondata.py
+++ b/libcloud/common/dimensiondata.py
@@ -833,11 +833,20 @@ class DimensionDataFirewallAddress(object):
self.any_ip = any_ip
self.ip_address = ip_address
self.ip_prefix_size = ip_prefix_size
+ self.port_list_id = port_list_id
self.port_begin = port_begin
self.port_end = port_end
self.address_list_id = address_list_id
self.port_list_id = port_list_id
+ def __repr__(self):
+ return (
+ '<DimensionDataFirewallAddress: any_ip=%s, ip_address=%s, '
+ 'ip_prefix_size=%s, port_begin=%s, port_end=%s, '
+ 'address_list_id=%s, port_list_id=%s>'
+ % (self.any_ip, self.ip_address, self.ip_prefix_size,
+ self.port_begin, self.port_end, self.address_list_id,
+ self.port_list_id))
class DimensionDataNatRule(object):
"""