Skip to content

Instantly share code, notes, and snippets.

@yuuichi-fujioka
Last active August 29, 2015 14:13
Show Gist options
  • Save yuuichi-fujioka/92c01246d12a01b52717 to your computer and use it in GitHub Desktop.
Save yuuichi-fujioka/92c01246d12a01b52717 to your computer and use it in GitHub Desktop.
get mapping between port name and port number
ovs-vsctl -f json list interface | jq '[.data[] | {key: .[22], value: .[23]}] | from_entries'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment