1 from django.conf.urls import patterns, url, include
3 from sla import slicetabsla
5 urlpatterns = patterns('',
7 include('rest_framework.urls', namespace='rest_framework')),
9 slicetabsla.Testbeds.as_view(), name="testbeds"),
10 url(r'^(?P<slicename>[^/]+)/?$',
11 slicetabsla.SLAView.as_view(), name="agreements_summary"),
12 url(r'^agreements/(?P<agreement_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/detail$',
13 slicetabsla.agreement_details, name='agreement_details'),
14 url(r'^agreements/(?P<agreement_id>[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/guarantees/(?P<guarantee_name>\w+)/violations$',
15 slicetabsla.agreement_term_violations, name='agreement_term_violations'),
16 url(r'^agreements/simplecreate/?$',
17 slicetabsla.AgreementSimple.as_view(), name="agreementsimple"),