-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Physical Interfaces Parenting Virtual Interfaces #1651
Merged
glennmatthews
merged 95 commits into
next
from
timizuo-GH1455-pyysical-interface-parenting
May 31, 2022
Merged
Physical Interfaces Parenting Virtual Interfaces #1651
glennmatthews
merged 95 commits into
next
from
timizuo-GH1455-pyysical-interface-parenting
May 31, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- rename @Property parent to parent_object
- Replace parent with parent_object in relevant locations
- Apply InterfaceSerializerVersion13 to InterfaceViewSet
- Add parent field to VMInterface, VMInterfaceForm, VMInterfaceFilterSet, VMInterfaceTable - Modify vm templates accordingly
- Modify TestCases to account for bridge - Modify interface.html add bridge to table
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few brief observations, since I know this is still a draft. :-)
timizuoebideri1
force-pushed
the
timizuo-GH1455-pyysical-interface-parenting
branch
from
April 21, 2022 20:01
a6f9cc2
to
465aded
Compare
timizuoebideri1
force-pushed
the
timizuo-GH1455-pyysical-interface-parenting
branch
from
April 21, 2022 20:05
465aded
to
8f87e64
Compare
timizuoebideri1
force-pushed
the
timizuo-GH1455-pyysical-interface-parenting
branch
from
April 21, 2022 20:33
8f87e64
to
4860158
Compare
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
bryanculver
force-pushed
the
timizuo-GH1455-pyysical-interface-parenting
branch
from
April 27, 2022 18:19
924b48f
to
4860158
Compare
bryanculver
reviewed
Apr 27, 2022
# Conflicts: # nautobot/dcim/api/views.py # nautobot/dcim/models/device_components.py # nautobot/dcim/tests/test_api.py # nautobot/dcim/tests/test_forms.py # nautobot/ipam/filters.py # nautobot/ipam/tests/test_filters.py # nautobot/virtualization/api/views.py # nautobot/virtualization/models.py # nautobot/virtualization/tests/test_views.py
1 task
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
…e-parenting' into timizuo-GH1455-pyysical-interface-parenting
glennmatthews
approved these changes
May 26, 2022
This was referenced May 31, 2022
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #1455
What's Changed
Prototype physical Interfaces Parenting Virtual Interfaces by porting over NetBox implementation
Added
parent_interface
andbridge
fields toInterface
andVMInterface
modelCreated a
filter_device_common_vc_id
method inInterfaceFilterSet
and added a new fielddevice_with_common_vc
which implementsfilter_device_common_vc_id
as its method:filter_device_common_vc_id
returns interfaces with samedevice
orvirtual_chassis
unlikefilter_device_id
which returns only interfaces with same device and only return interfaces with samevc
ifdevice.virtual_chassis
is master.device_id
query params withdevice_with_common_vc
forparent_interface
,bridge
, andlag
parent_interface
,bridge
,lag
using"device_with_common_vc": "$device"
as a query params onInterfaceCreateForm
.Closes #1519: Enable parent assignment for interfaces netbox-community/netbox#5930
Closes #6346: Bridge group support netbox-community/netbox#7622
netbox-community/netbox@61d2158
TODO