Ask Your Question

wolfv's profile - activity

2019-05-09 06:37:35 -0500 asked a question Get private IP with CLI

I am trying to get only the private IP v4 from the command line interface. I can use openstack server show myserver -c addresses just fine but it prints out a table / json and I am not able to find only the private v4 IP.

I'd like to have some command like

openstack server addresses -4 --private which would return

19.23.32.12

Is that implemented somewhere or do I need to write my own python script?