Skip to content
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

IP address assignment to device with no interface #1330

Closed
Atoms opened this issue Jul 11, 2017 · 3 comments
Closed

IP address assignment to device with no interface #1330

Atoms opened this issue Jul 11, 2017 · 3 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@Atoms
Copy link

Atoms commented Jul 11, 2017

**Python version: 3.4
**NetBox version: 2.0.9

When you create IP address within API, and then create device with that IP as primary IP, with not providing interface id you can see IP address in device view, but you don't see device attached in IP address view.
image

image

image

@jeremystretch
Copy link
Member

Looks related to #1285. Could you please see if you can recreate the issue under v2.1-beta1 (or the develop-2.1 branch)?

@Atoms
Copy link
Author

Atoms commented Jul 13, 2017

Same behavior is in 2.1 beta version

@Atoms
Copy link
Author

Atoms commented Jul 13, 2017

API requests with which i did that.
`curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Token xxxxxxx' -d '{ "address": "10.10.10.12/24", "tenant": "1" }' 'http://xxxxx/api/ipam/ip-addresses/'

echo

read -p "Provide id of ip:" ip_id

echo ${ip_id}

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Token xxxxxxx' -d '{ "serial": "xxxx", "device_role": "4", "tenant": "1", "site": "24", "name": "test-device", "primary_ip4": "'$ip_id'", "device_type": "139" }' 'http://xxxxxx/api/dcim/devices/'
`

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application and removed awaiting reply labels Jul 13, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
… unrelated IP as the primary IP for a device
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants