Commit b27d2775 authored by Stauros Kroustouris's avatar Stauros Kroustouris

new dummy interfaces for the api

parent 741b4b58
......@@ -86,7 +86,6 @@
<% if (pin.equipment[equipment].ifces.length >0 ) { %>
<ul>
<% for (var ifce in pin.equipment[equipment].ifces) {%>
<li><%= pin.equipment[equipment].ifces[ifce].display_name %></li>
<% } %>
</ul>
......
......@@ -68,6 +68,21 @@ def site_devices(request, site_id):
"id": 999999
}]
}])
response.extend([{
'id': 999999,
'free_ports': [],
'role': 'CPE',
'name': 'lab-mx1.grnet.gr',
'ifces': [{
'description': 'test',
'ifce': 'ge-1/0/0',
"bandwidth": 1000000000,
"vlans": [
],
"type": "Unknown",
"id": 9999999
}]
}])
elif site_id == '902':
response.extend([{
'id': 999999,
......@@ -84,6 +99,21 @@ def site_devices(request, site_id):
"id": 9999909
}]
}])
response.extend([{
'id': 99999999,
'free_ports': [],
'role': 'CPE',
'name': 'lab-mx2.grnet.gr',
'ifces': [{
'description': 'test',
'ifce': 'ge-1/0/6',
"bandwidth": 1000000000,
"vlans": [
],
"type": "Unknown",
"id": 999999999
}]
}])
json_str = json.dumps(response)
return HttpResponse(
json_str,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment