Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for my $node (@appliances){
- (my $code, $port) = $rest->call( "GET", "node/$node/ports", {} );
- push @ports, @{$port->{items}};
- }
- print Dumper(@ports);
- exit 1;
- output
- $VAR131 = {
- 'autocfg' => 0,
- 'segment' => 'segment-SCMGMT-9a9c47a3cacfadaf',
- 'capab_cluster' => 0,
- 'mgmt_enabled' => 0,
- 'capab_poe' => 0,
- 'mgmt_dns_ipv4' => undef,
- 'capab_uplink' => 0,
- 'speeds' => undef,
- 'ifname' => undef,
- 'autotrunk' => 1,
- 'capab_multizone' => 1,
- 'data_enabled' => 0,
- 'mgmt_ipv4' => undef,
- 'capab_vsh_aux' => 0,
- 'mac' => '6C:98:EB:01:8A:50',
- 'mgmt_config_type' => 'dhcpc',
- 'patchlabel' => undef,
- 'speed' => undef,
- 'capab_mgmt' => 0,
- 'portal' => undef,
- 'tagged' => 0,
- 'id' => 'port-53-741008f97bad25be',
- 'poe_disabled' => 0,
- 'virtual_mac' => undef,
- 'dcinterface' => undef,
- 'mgmt_gw_ipv6' => undef,
- 'switch_id' => 'KODIAK_LAN',
- 'port_id' => 'KODIAK_LAN53',
- 'vsh_aux_enabled' => 0,
- 'node' => 'node-bc3b30d74aef005f',
- 'mgmt_ipv6' => undef,
- 'type' => 'QSFP',
- 'cluster_enabled' => 0,
- 'uplink' => undef,
- 'capab_lan' => 1,
- 'mgmt_gw_ipv4' => undef,
- 'tag' => '53',
- 'vsh_primary_enabled' => 0,
- 'ha_mirrored_uplink' => '0',
- 'auto' => 0,
- 'bridge_with' => undef
- };
- $VAR132 = {
- 'switch_id' => 'KODIAK_LAN',
- 'port_id' => 'KODIAK_LAN54',
- 'dcinterface' => undef,
- 'mgmt_gw_ipv6' => undef,
- 'node' => 'node-bc3b30d74aef005f',
- 'vsh_aux_enabled' => 0,
- 'cluster_enabled' => 0,
- 'uplink' => undef,
- 'type' => 'QSFP',
- 'mgmt_ipv6' => undef,
- 'capab_lan' => 1,
- 'tag' => '54',
- 'mgmt_gw_ipv4' => undef,
- 'vsh_primary_enabled' => 0,
- 'ha_mirrored_uplink' => '0',
- 'bridge_with' => undef,
- 'auto' => 0,
- 'autocfg' => 0,
- 'segment' => 'segment-SCMGMT-9a9c47a3cacfadaf',
- 'capab_cluster' => 0,
- 'capab_poe' => 0,
- 'mgmt_enabled' => 0,
- 'capab_uplink' => 0,
- 'speeds' => undef,
- 'mgmt_dns_ipv4' => undef,
- 'ifname' => undef,
- 'data_enabled' => 0,
- 'capab_vsh_aux' => 0,
- 'mgmt_ipv4' => undef,
- 'autotrunk' => 1,
- 'capab_multizone' => 1,
- 'speed' => undef,
- 'capab_mgmt' => 0,
- 'portal' => undef,
- 'mac' => '6C:98:EB:01:8A:50',
- 'mgmt_config_type' => 'dhcpc',
- 'patchlabel' => undef,
- 'tagged' => 0,
- 'id' => 'port-54-636a2a917129796e',
- 'poe_disabled' => 0,
- 'virtual_mac' => undef
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement