2727 ``tm:security:nat:*``
2828"""
2929from f5 .bigip .mixins import CheckExistenceMixin
30+ from f5 .bigip .mixins import CommandExecutionMixin
3031from f5 .bigip .resource import Collection
3132from f5 .bigip .resource import OrganizingCollection
3233from f5 .bigip .resource import Resource
@@ -99,7 +100,7 @@ def exists(self, **kwargs):
99100 return super (Rule , self )._load (** kwargs )
100101
101102
102- class Source_Translations (Collection ):
103+ class Source_Translations (Collection , CommandExecutionMixin ):
103104 """BIG-IP® AFM® Nat Source Translation collection"""
104105
105106 def __init__ (self , nat ):
@@ -108,9 +109,10 @@ def __init__(self, nat):
108109 self ._meta_data ['attribute_registry' ] = \
109110 {'tm:security:nat:source-translation:source-translationstate' :
110111 Source_Translation }
112+ self ._meta_data ['allowed_commands' ].append ('reset-stats' )
111113
112114
113- class Source_Translation (Resource ):
115+ class Source_Translation (Resource , CommandExecutionMixin ):
114116 def __init__ (self , source_translations ):
115117 super (Source_Translation , self ).__init__ (source_translations )
116118 self ._meta_data ['required_json_kind' ] = \
@@ -119,9 +121,10 @@ def __init__(self, source_translations):
119121 ('partition' ,))
120122 self ._meta_data ['required_load_parameters' ].update (
121123 ('partition' ,))
124+ self ._meta_data ['allowed_commands' ].append ('reset-stats' )
122125
123126
124- class Destination_Translations (Collection ):
127+ class Destination_Translations (Collection , CommandExecutionMixin ):
125128 """BIG-IP® AFM® Nat Destination Translation collection"""
126129
127130 def __init__ (self , nat ):
@@ -130,9 +133,10 @@ def __init__(self, nat):
130133 self ._meta_data ['attribute_registry' ] = \
131134 {'tm:security:nat:destination-translation:destination-translationstate' :
132135 Destination_Translation }
136+ self ._meta_data ['allowed_commands' ].append ('reset-stats' )
133137
134138
135- class Destination_Translation (Resource ):
139+ class Destination_Translation (Resource , CommandExecutionMixin ):
136140 def __init__ (self , destination_translations ):
137141 super (Destination_Translation , self ).__init__ (destination_translations )
138142 self ._meta_data ['required_json_kind' ] = \
@@ -141,6 +145,7 @@ def __init__(self, destination_translations):
141145 ('partition' ,))
142146 self ._meta_data ['required_load_parameters' ].update (
143147 ('partition' ,))
148+ self ._meta_data ['allowed_commands' ].append ('reset-stats' )
144149
145150
146151class Policy_s (Collection ):
0 commit comments