def delete_interface() -> None: """ delete Interface""" print("----------Patch Interface-----------") print() show_interface() int_name = input("Enter the name of the Interface Name :- ") try: ipint = IpInterface.find(name=int_name) if ipint.delete(poll=True): print("Interface deleted successfully.") except NetAppRestError as error: print("Exception caught :" + str(error))
def patch_interface() -> None: """ Patch Interface""" print("----------Patch Interface-----------") print() show_interface() int_name = input("Enter the name of the Interface Name :- ") int_new_name = input( "Enter the new name of the interface to be updated :- ") try: ipint = IpInterface.find(name=int_name) ipint.name = int_new_name if ipint.patch(poll=True): print("Interface updated successfully.") except NetAppRestError as error: print("Exception caught :" + str(error))