Exemplo n.º 1
0
def deleteAllCars(ignore):
    util.delete(settings.getCarsUrl(),"admin","admin")
    resp = getCars(ignore)
    print("Cars in store after deletion:"+ str(resp))
Exemplo n.º 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))
Exemplo n.º 3
0
def getCars(ignore):
    resp = util.get(settings.getCarsUrl(),"admin", "admin")
    print (resp)
    return resp
Exemplo n.º 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
Exemplo n.º 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))
Exemplo n.º 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
Exemplo n.º 7
0
def deleteAllCars(ignore):
    util.delete(settings.getCarsUrl(), "admin", "admin")
    resp = getCars(ignore)
    print("Cars in store after deletion:" + str(resp))
Exemplo n.º 8
0
def getCars(ignore):
    resp = util.get(settings.getCarsUrl(), "admin", "admin")
    print(resp)
    return resp