File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -157,3 +157,23 @@ def get_wan_monitor(self,
157157 return None
158158
159159 return self .conn .send_request (action , body )
160+
161+ def get_wan_info (self ,
162+ resources = None ,
163+ info_type = None ,
164+ ** params ):
165+ """ Action: GetWanInfo
166+ @param resources: the comma separated IDs of wan resource.
167+ @param info_type: the info type. eg: cpe_mobile_info.
168+ """
169+ action = const .ACTION_GET_WAN_INFO
170+ valid_keys = ['resources' , 'info_type' ]
171+ body = filter_out_none (locals (), valid_keys )
172+ if not self .conn .req_checker .check_params (
173+ body ,
174+ required_params = ["resources" , "info_type" ],
175+ list_params = ["resources" ],
176+ ):
177+ return None
178+
179+ return self .conn .send_request (action , body )
Original file line number Diff line number Diff line change 349349ACTION_CHANGE_WAN_ACCESS_BANDWIDTH = "ChangeWanAccessBandwidth"
350350ACTION_UPGRADE_WAN_ACCESS = "UpgradeWanAccess"
351351ACTION_GET_WAN_MONITOR = "GetWanMonitor"
352+ ACTION_GET_WAN_INFO = "GetWanInfo"
352353
353354# migrate
354355ACTION_MIGRATE_RESOURCES = "MigrateResources"
You can’t perform that action at this time.
0 commit comments