Closed rmhasan closed 7 years ago
Oh awesome. Sorry I've been behind the curve. I'll check this out. Thank you!!
I'm going to review this damn thing eventually. I need a clone.
Hi @jathanism and @nickpegg, I saw the feed back on #266 and #271. I will work on them soon.
Hi @jathanism and @nickpegg I worked on the changes you requested. Sorry it took so long.
@rmhasan There's no need to apologize, you're a hero!
Hi @jathanism and @nickpegg. I made the following changes.
self.retreive
to return parent and root interfacessiblings
view to look for interfaces with same parent and deviceNone
as root if root
is called on that interfacesiblings
is called, that interfaces with same parent and devices are returnedroot
is called on an interface with no parent that it is returnedEDIT: You can also checkout PR dropbox/pynsot#134 to test the new tree traversal methods.
Hi @jathanism I made the following changes
ValidationError
thrown from Interface.clean_parent
to be a double quoted stringQuerysets
from Interface.get_descendants, Interface.get_ancestors, and Interface.get_siblings
Thanks for this contribution! :) I'm merging this and cutting a new version. I'll drop a note on this PR once that version's available on PyPI.
v.1.1.4 released to PyPI: https://pypi.python.org/pypi/nsot/1.1.4
Added following methods in
InterfaceViewSet
which can be invoked by get requests to return view setsAlso implemented following methods in
Interface
model class inmodels.py
which get invoked in the view methodsAlso added tests in
tests/api_tests/test_interfaces.py
andtests/model_tests/test_interfaces.py