Fix awk string to correctly extract PORT_ID#13
Merged
hadib merged 2 commits intosavi-dev:silverfrom Jun 21, 2013
Merged
Conversation
This one-character change addresses the issue where this script always fails to get the PORT_ID. The output table looks like this:
fixed_ips | id | tenant_id |
| {"subnet_id": "f2fe6ee6-ee3a-4f8d-bc6f-f537cb230319", "ip_address": "10.2.7.1"} | 0e6c6a53-d8d4-4a0d-be70-330f6961432f | ca07deedf3864058a8e62797d1711733 |
As you can see we need the 7th field, not the 2nd.
This addresses a problem where when you associate a floatingip that already has an existing association, warning messages are printed in the q-l3 script. I've run this twice - make sure it didn't generate its own problems as I try to disassociate a floating ip whether it has an association or not.
Author
|
Oops, accidentally committed the second change, meant to do a second pull request. If you can paste the output of "quantum port-list -c id -c fixed_ips -c tenant_id" I will try to write a more robust and general awk command, I am astounded that it could be field 2 for you and field 7 for me! |
hadib
added a commit
that referenced
this pull request
Jun 21, 2013
Fix awk string to correctly extract PORT_ID
This file contains hidden or 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
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.
This one-character change addresses the issue where this script always fails to get the PORT_ID. The output table looks like this:
fixed_ips | id | tenant_id |
| {"subnet_id": "f2fe6ee6-ee3a-4f8d-bc6f-f537cb230319", "ip_address": "10.2.7.1"} | 0e6c6a53-d8d4-4a0d-be70-330f6961432f | ca07deedf3864058a8e62797d1711733 |
As you can see we need the 7th field, not the 2nd.