@@ -38,17 +38,19 @@ class Fdb(OrganizingCollection):
3838 def __init__ (self , net ):
3939 super (Fdb , self ).__init__ (net )
4040 self ._meta_data ['allowed_lazy_attributes' ] = [Tunnels ]
41- self ._meta_data ['icontrol_version' ] = '11.5.0'
41+ # self._meta_data['icontrol_version'] = '11.5.0'
4242
4343
4444class Tunnel (Resource ):
4545 """BIG-IP® Tunnel resource."""
4646 def __init__ (self , Tunnels ):
4747 super (Tunnel , self ).__init__ (Tunnels )
4848 self ._meta_data ['required_json_kind' ] = "tm:net:fdb:tunnel:tunnelstate"
49+ self ._meta_data ['attribute_registry' ] = {
50+ 'tm:net:fdb:tunnel:records:recordscollectionstate' : Records_s }
4951 # Setting this here to be explicit, even though it is set via
5052 # the super call from its containing object.
51- self ._meta_data ['icontrol_version' ] = '11.5.0'
53+ # self._meta_data['icontrol_version'] = '11.5.0'
5254
5355
5456class Tunnels (Collection ):
@@ -60,4 +62,24 @@ def __init__(self, fdb):
6062 {'tm:net:fdb:tunnel:tunnelstate' : Tunnel }
6163 # Setting this here to be explicit, even though it is set via
6264 # the super call from its containing object.
63- self ._meta_data ['icontrol_version' ] = '11.5.0'
65+ # self._meta_data['icontrol_version'] = '11.5.0'
66+
67+
68+ class Records_s (Collection ):
69+ """BIG-IP® Tunnel records collection."""
70+ def __init__ (self , tunnel ):
71+ super (Records_s , self ).__init__ (tunnel )
72+ self ._meta_data ['allowed_lazy_attributes' ] = [Records ]
73+ self ._meta_data ['required_json_kind' ] = \
74+ 'tm:net:fdb:tunnel:records:recordscollectionstate'
75+ self ._meta_data ['attribute_registry' ] = \
76+ {'tm:net:fdb:tunnel:records:recordsstate' : Records }
77+
78+
79+ class Records (Resource ):
80+ """BIG-IP® LTM pool members sub-collection resource"""
81+ def __init__ (self , records_s ):
82+ super (Records , self ).__init__ (records_s )
83+ self ._meta_data ['required_json_kind' ] = \
84+ 'tm:net:fdb:tunnel:records:recordsstate'
85+ self ._meta_data ['required_creation_parameters' ].update (('name' ,))
0 commit comments