def deleteAllCars(ignore):
    util.delete(settings.getCarsUrl(),"admin","admin")
    resp = getCars(ignore)
    print("Cars in store after deletion:"+ str(resp))
Beispiel #2
0
def deleteAllCars(ignore):
    """delete all cars in the store using RESTCONF"""
    util.delete(settings.getCarsUrl(), "admin", "admin")
    resp = getCars(ignore)
    print("Cars in store after deletion:" + str(resp))
def getCars(ignore):
    resp = util.get(settings.getCarsUrl(),"admin", "admin")
    print (resp)
    return resp
Beispiel #4
0
def getCars(ignore):
    """Uses the GET on car:cars resource to get all cars in the store using RESTCONF"""
    resp = util.get(settings.getCarsUrl(), "admin", "admin")
    print(resp)
    return resp
Beispiel #5
0
def deleteAllCars(ignore):
    """delete all cars in the store using RESTCONF"""
    util.delete(settings.getCarsUrl(), "admin", "admin")
    resp = getCars(ignore)
    print("Cars in store after deletion:" + str(resp))
Beispiel #6
0
def getCars(ignore):
    """Uses the GET on car:cars resource to get all cars in the store using RESTCONF"""
    resp = util.get(settings.getCarsUrl(), "admin", "admin")
    print(resp)
    return resp
Beispiel #7
0
def deleteAllCars(ignore):
    util.delete(settings.getCarsUrl(), "admin", "admin")
    resp = getCars(ignore)
    print("Cars in store after deletion:" + str(resp))
Beispiel #8
0
def getCars(ignore):
    resp = util.get(settings.getCarsUrl(), "admin", "admin")
    print(resp)
    return resp