Skip to content

Commit a5587f4

Browse files
committed
add sdwan get mobile info api
1 parent d87c8ff commit a5587f4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

qingcloud/iaas/actions/sdwan.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

qingcloud/iaas/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@
349349
ACTION_CHANGE_WAN_ACCESS_BANDWIDTH = "ChangeWanAccessBandwidth"
350350
ACTION_UPGRADE_WAN_ACCESS = "UpgradeWanAccess"
351351
ACTION_GET_WAN_MONITOR = "GetWanMonitor"
352+
ACTION_GET_WAN_INFO = "GetWanInfo"
352353

353354
# migrate
354355
ACTION_MIGRATE_RESOURCES = "MigrateResources"

0 commit comments

Comments
 (0)