You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started working to add Interface Reset Capability to the Python APIs. Here is what I got working. hopefully this will be easy to add.
def post_reset_interface(self, device_ip, vpn_id, ifname):
"""Reset an Interface
Args:
device_ip (str): device IP for device object
vpn_id (int): VPN Id for Interface
ifname (str): Interface name to reset
"""
url = f"{self.base_url}device/tools/reset/interface/{device_ip}"
payload = f"{{'vpnId':'{vpn_id}','ifname':'{ifname}'}}"
response = HttpMethods(self.session, url).request('POST', payload=payload)
result = ParseMethods.parse_status(response)
return result
I started working to add Interface Reset Capability to the Python APIs. Here is what I got working. hopefully this will be easy to add.
#134
The text was updated successfully, but these errors were encountered: