@@ -857,6 +857,16 @@ class ARecord(ARecordBase):
857
857
_remap = {'ip' : 'ipv4addr' }
858
858
_ip_version = 4
859
859
860
+ @property
861
+ def ipv4addr (self ):
862
+ # Convert IPAllocation objects to string
863
+ if hasattr (self , '_ipv4addr' ):
864
+ return str (self ._ipv4addr )
865
+
866
+ @ipv4addr .setter
867
+ def ipv4addr (self , ipv4addr ):
868
+ self ._ipv4addr = ipv4addr
869
+
860
870
861
871
class AAAARecord (ARecordBase ):
862
872
_infoblox_type = 'record:aaaa'
@@ -869,6 +879,16 @@ class AAAARecord(ARecordBase):
869
879
_remap = {'ip' : 'ipv6addr' }
870
880
_ip_version = 6
871
881
882
+ @property
883
+ def ipv6addr (self ):
884
+ # Convert IPAllocation objects to string
885
+ if hasattr (self , '_ipv6addr' ):
886
+ return str (self ._ipv6addr )
887
+
888
+ @ipv6addr .setter
889
+ def ipv6addr (self , ipv6addr ):
890
+ self ._ipv6addr = ipv6addr
891
+
872
892
873
893
class PtrRecord (InfobloxObject ):
874
894
_infoblox_type = 'record:ptr'
@@ -987,7 +1007,8 @@ class EADefinition(InfobloxObject):
987
1007
988
1008
989
1009
class IPAddress (InfobloxObject ):
990
- _fields = ['network_view' , 'ip_address' , 'objects' , 'network' , 'status' ]
1010
+ _fields = ['network_view' , 'ip_address' , 'objects' , 'network' , 'status' ,
1011
+ 'is_conflict' , 'types' , 'usage' , 'names' ]
991
1012
_search_for_update_fields = ['network_view' , 'ip_address' ,
992
1013
'network' , 'status' ]
993
1014
_all_searchable_fields = _search_for_update_fields
@@ -1006,11 +1027,13 @@ def get_v6_class(cls):
1006
1027
class IPv4Address (IPAddress ):
1007
1028
_infoblox_type = 'ipv4address'
1008
1029
_ip_version = 4
1030
+ _fields = IPAddress ._fields + ['mac_address' ]
1009
1031
1010
1032
1011
1033
class IPv6Address (IPAddress ):
1012
1034
_infoblox_type = 'ipv6address'
1013
1035
_ip_version = 6
1036
+ _fields = IPAddress ._fields + ['duid' , 'lease_state' ]
1014
1037
1015
1038
1016
1039
class IPAllocation (object ):
0 commit comments