mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
11 lines
300 B
Markdown
11 lines
300 B
Markdown
|
# Get network information
|
||
|
|
||
|
- To see all networks list
|
||
|
|
||
|
connection.servers.service.networks
|
||
|
|
||
|
- To see details of a particular network
|
||
|
|
||
|
selected_nw = connection.servers.service.networks.detect { |n| n.name == 'Default' }
|
||
|
connection.servers.service.get_network(selected_nw.href)
|