I create a instance using Openstack4j.Now i am trying get the public and private address assigned to the instance.I am using server.getaddress() it returns NovaAddresses{addresses={private=[NovaAddress{address=10.0.0.2, type=fixed, version=4, macaddr=fa:16:3e:c7:1f:87,
}, NovaAddress{address=10.0.0.1, type=floating, version=4, macaddr=fa:16:3e:c7:1f:87,
}]},
}
i want to list private & public addresses separately without other information..Specifically public address
I create a instance using Openstack4j.Now i am trying get the public and private address assigned to the instance.I am using server.getaddress() it returns NovaAddresses{addresses={private=[NovaAddress{address=10.0.0.2, type=fixed, version=4, macaddr=fa:16:3e:c7:1f:87, }, NovaAddress{address=10.0.0.1, type=floating, version=4, macaddr=fa:16:3e:c7:1f:87, }]}, } i want to list private & public addresses separately without other information..Specifically public address