Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
brdunn
IPAM
Commits
80046baa
Commit
80046baa
authored
May 06, 2019
by
Brandon Dunn
Browse files
updated
parent
66fc9960
Changes
5
Hide whitespace changes
Inline
Side-by-side
ipam_proj/ipam/__pycache__/serializers.cpython-36.pyc
View file @
80046baa
No preview for this file type
ipam_proj/ipam/__pycache__/views.cpython-36.pyc
View file @
80046baa
No preview for this file type
ipam_proj/ipam/views.py
View file @
80046baa
...
...
@@ -57,4 +57,22 @@ class DeleteHost(generics.DestroyAPIView):
# permission_classes - (permissions.IsAuthenticated)
serializer_class
=
serializers
.
RecordSerializer
class
UpdateRecord
(
generics
.
UpdateAPIView
):
queryset
=
models
.
Record
.
objects
.
all
()
# permission_classes = (permissions.IsAuthenticated)
serializer_class
=
serializers
.
RecordSerializer
class
UpdateHost
(
generics
.
UpdateAPIView
):
queryset
=
models
.
Host
.
objects
.
all
()
# permission_classes = (permissions.IsAuthenticated)
serializer_class
=
serializers
.
HostSerializer
class
UpdateAdapter
(
generics
.
UpdateAPIView
):
queryset
=
models
.
Adapter
.
objects
.
all
()
# permission_classes = (permissions.IsAuthenticated)
serializer_class
=
serializers
.
AdapterSerializer
class
UpdateMac
(
generics
.
UpdateAPIView
):
queryset
=
models
.
Mac_Addr
.
objects
.
all
()
# permission_classes = (permissions.IsAuthenticated)
serializer_class
=
serializers
.
MacAddrSerializer
\ No newline at end of file
ipam_proj/ipam_proj/__pycache__/urls.cpython-36.pyc
View file @
80046baa
No preview for this file type
ipam_proj/ipam_proj/urls.py
View file @
80046baa
...
...
@@ -11,6 +11,11 @@ urlpatterns = [
url
(
r
'^ipam/createadapter/'
,
view
=
views
.
CreateAdapter
.
as_view
()),
url
(
r
'^ipam/createmac/'
,
view
=
views
.
CreateMac
.
as_view
()),
url
(
r
'^ipam/updateip/(?P<pk>\d+)/$'
,
view
=
views
.
UpdateIp
.
as_view
()),
url
(
r
'^ipam/deletehost/(?P<pk>\d+)/$'
,
view
=
views
.
DeleteHost
.
as_view
())
url
(
r
'^ipam/deletehost/(?P<pk>\d+)/$'
,
view
=
views
.
DeleteHost
.
as_view
()),
url
(
r
'^ipam/updaterecord/(?P<pk>\d+)/$'
,
view
=
views
.
UpdateRecord
.
as_view
()),
url
(
r
'^ipam/updatehost/(?P<pk>\d+)/$'
,
view
=
views
.
UpdateHost
.
as_view
()),
url
(
r
'^ipam/updateadapter/(?P<pk>\d+)/$'
,
view
=
views
.
UpdateAdapter
.
as_view
()),
url
(
r
'^ipam/updatemac/(?P<pk>\d+)/$'
,
view
=
views
.
UpdateMac
.
as_view
()),
]
#(?P<id>\d+)/$
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment