Return IP type for interfaces (fixed or floating)
In nova.api.
In nova.api.
]
},
Here 10.10.0.3 actually is a public IP and A.B.C.D is a private one.
An additional field "is_fixed" is added with the following patch.
--- nova/api/
+++ nova/api/
@@ -76,9 +76,9 @@
def _extract_
for fixed_ip in interface[
- yield self._build_
+ yield self._build_
for floating_ip in fixed_ip.
- yield self._build_
+ yield self._build_
def _extract_
fixed_ipv6 = interface.
@@ -86,4 +86,4 @@
return self._build_
def _build_
- return {'addr': address, 'version': version)
+ return {'addr': address, 'version': version, "is_fixed": is_fixed}
Then output will look like:
]
},
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Alexej Ababilov
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Vish Ishaya
Related branches
Related bugs
Sprints
Whiteboard
We have labels on on the ips now. I think that is good enough to solve this use case. --Vish