Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Professional Edition
-
None
Description
When I create an APi GET to the '/ports' endpoint i get more ports then expected:
This is the APi Call:
/api/v0/ports/?device_id=68&ifDescr=xe-0%2F0%2F5&ifType=ethernetCsmacd
|
this is the answer:
[status] => ok
|
[count] => 5 |
[ports] => Array
|
(
|
[7977] => Array
|
(
|
[port_id] => 7977
|
[device_id] => 68
|
[port_64bit] => 1
|
[port_label] => xe-0/0/5
|
[port_label_base] => xe-
|
[port_label_num] => 0/0/5
|
[port_label_short] => xe-0/0/5
|
[port_descr_type] =>
|
[port_descr_descr] =>
|
[port_descr_circuit] =>
|
[port_descr_speed] =>
|
[port_descr_notes] =>
|
[ifDescr] => xe-0/0/5
|
[ifName] => xe-0/0/5
|
[ifIndex] => 519
|
[ifSpeed] => 10000000000
|
[ifConnectorPresent] => true
|
[ifPromiscuousMode] => false
|
[ifHighSpeed] => 10000
|
[ifOperStatus] => up
|
[ifAdminStatus] => up
|
[ifDuplex] => fullDuplex
|
[ifMtu] => 1514
|
[ifType] => ethernetCsmacd
|
[ifAlias] =>
|
[ifPhysAddress] => 5c4527b75948
|
[ifHardType] =>
|
[ifLastChange] => 2022-08-05 13:36:32
|
[ifVlan] => 605
|
[ifTrunk] =>
|
[ifVrf] =>
|
[encrypted] => 0
|
[ignore] => 0
|
[disabled] => 0
|
[detailed] => 0
|
[deleted] => 0
|
[ifInUcastPkts] => 3137264098
|
[ifInUcastPkts_rate] => 9
|
[ifOutUcastPkts] => 34479278159
|
[ifOutUcastPkts_rate] => 9
|
[ifInErrors] => 1
|
[ifInErrors_rate] => 0
|
[ifOutErrors] => 0
|
[ifOutErrors_rate] => 0
|
[ifOctets_rate] => 1336
|
[ifUcastPkts_rate] => 18
|
[ifErrors_rate] => 0
|
[ifInOctets] => 1480433780809
|
[ifInOctets_rate] => 615
|
[ifOutOctets] => 29235089929629
|
[ifOutOctets_rate] => 722
|
[ifInOctets_perc] => 0
|
[ifOutOctets_perc] => 0
|
[poll_time] => 1660567394
|
[poll_period] => 347
|
[ifInErrors_delta] => 0
|
[ifOutErrors_delta] => 0
|
[ifInNUcastPkts] => 3651777
|
[ifInNUcastPkts_rate] => 0
|
[ifOutNUcastPkts] => 97298304605
|
[ifOutNUcastPkts_rate] => 0
|
[ifInBroadcastPkts] => 20859
|
[ifInBroadcastPkts_rate] => 0
|
[ifOutBroadcastPkts] => 97103484346
|
[ifOutBroadcastPkts_rate] => 0
|
[ifInMulticastPkts] => 3630918
|
[ifInMulticastPkts_rate] => 0
|
[ifOutMulticastPkts] => 194820259
|
[ifOutMulticastPkts_rate] => 0
|
[port_mcbc] => 1
|
[ifInDiscards] => 0
|
[ifInDiscards_rate] => 0
|
[ifOutDiscards] => 514767764
|
[ifOutDiscards_rate] => 0
|
[ifDiscards_rate] => 0
|
[attribs] => Array
|
(
|
[jnx_cos_queues] => [0,1,2,3,4,5,6,7,8,9,10,11]
|
)
|
|
[human_speed] => 10Gbps
|
[human_type] => Ethernet
|
[html_class] =>
|
[human_mac] => 5c:45:27:b7:59:48
|
[entity_name] => xe-0/0/5
|
[entity_shortname] => xe-0/0/5
|
[entity_descr] =>
|
[table_tab_colour] => #194B7F
|
[row_class] => ok
|
[icon] => port-up
|
[admin_status] => enabled
|
[admin_class] => primary
|
[oper_class] => primary
|
[in_rate] => 4920
|
[out_rate] => 5776
|
[bps_in_style] => color: #008C00;
|
[bps_out_style] => color: #394182;
|
[pps_in_style] => color: #740074;
|
[pps_out_style] => color: #FF7400;
|
[humanized] => 1
|
)
|
|
[10432] => Array
|
(
|
[port_id] => 10432
|
[device_id] => 68
|
[port_64bit] => 1
|
[port_label] => xe-0/0/50:0
|
[port_label_base] => xe-
|
[port_label_num] => 0/0/50:0
|
[port_label_short] => xe-0/0/50:0
|
[port_descr_type] =>
|
[port_descr_descr] =>
|
[port_descr_circuit] =>
|
[port_descr_speed] =>
|
[port_descr_notes] =>
|
[ifDescr] => xe-0/0/50:0
|
[ifName] => xe-0/0/50:0
|
[ifIndex] => 636
|
[ifSpeed] => 10000000000
|
[ifConnectorPresent] => true
|
[ifPromiscuousMode] => false
|
[ifHighSpeed] => 10000
|
[ifOperStatus] => up
|
[ifAdminStatus] => up
|
[ifDuplex] => fullDuplex
|
[ifMtu] => 1514
|
[ifType] => ethernetCsmacd
|
[ifAlias] => C24 Shopping FG 600E FW01 WAN (Port X1)
|
[ifPhysAddress] => 5c4527b7597b
|
[ifHardType] =>
|
[ifLastChange] => 2021-12-14 05:34:16
|
[ifVlan] => 0
|
[ifTrunk] =>
|
[ifVrf] =>
|
[encrypted] => 0
|
[ignore] => 0
|
[disabled] => 0
|
[detailed] => 0
|
[deleted] => 0
|
[ifInUcastPkts] => 565839784902
|
[ifInUcastPkts_rate] => 32958
|
[ifOutUcastPkts] => 753229126256
|
[ifOutUcastPkts_rate] => 52187
|
[ifInErrors] => 0
|
[ifInErrors_rate] => 0
|
[ifOutErrors] => 0
|
[ifOutErrors_rate] => 0
|
[ifOctets_rate] => 82408700
|
[ifUcastPkts_rate] => 85145
|
[ifErrors_rate] => 0
|
[ifInOctets] => 578496666583885
|
[ifInOctets_rate] => 28466033
|
[ifOutOctets] => 759664423519528
|
[ifOutOctets_rate] => 53942667
|
[ifInOctets_perc] => 2
|
[ifOutOctets_perc] => 4
|
[poll_time] => 1660567394
|
[poll_period] => 347
|
[ifInErrors_delta] => 0
|
[ifOutErrors_delta] => 0
|
[ifInNUcastPkts] => 917417
|
[ifInNUcastPkts_rate] => 0
|
[ifOutNUcastPkts] => 18769325090
|
[ifOutNUcastPkts_rate] => 658
|
[ifInBroadcastPkts] => 209023
|
[ifInBroadcastPkts_rate] => 0
|
[ifOutBroadcastPkts] => 18761788578
|
[ifOutBroadcastPkts_rate] => 658
|
[ifInMulticastPkts] => 708394
|
[ifInMulticastPkts_rate] => 0
|
[ifOutMulticastPkts] => 7536512
|
[ifOutMulticastPkts_rate] => 0
|
[port_mcbc] => 1
|
[ifInDiscards] => 0
|
[ifInDiscards_rate] => 0
|
[ifOutDiscards] => 38806
|
[ifOutDiscards_rate] => 0
|
[ifDiscards_rate] => 0
|
[attribs] => Array
|
(
|
[jnx_cos_queues] => [0,1,2,3,4,5,6,7,8,9,10,11]
|
)
|
|
[human_speed] => 10Gbps
|
[human_type] => Ethernet
|
[html_class] =>
|
[human_mac] => 5c:45:27:b7:59:7b
|
[entity_name] => xe-0/0/50:0
|
[entity_shortname] => xe-0/0/50:0
|
[entity_descr] => C24 Shopping FG 600E FW01 WAN (Port X1)
|
[table_tab_colour] => #194B7F
|
[row_class] => ok
|
[icon] => port-up
|
[admin_status] => enabled
|
[admin_class] => primary
|
[oper_class] => primary
|
[in_rate] => 227728264
|
[out_rate] => 431541336
|
[bps_in_style] => color: #008C00;
|
[bps_out_style] => color: #394182;
|
[pps_in_style] => color: #740074;
|
[pps_out_style] => color: #FF7400;
|
[humanized] => 1
|
)
|
|
[10433] => Array
|
(
|
[port_id] => 10433
|
[device_id] => 68
|
[port_64bit] => 1
|
[port_label] => xe-0/0/50:1
|
[port_label_base] => xe-
|
[port_label_num] => 0/0/50:1
|
[port_label_short] => xe-0/0/50:1
|
[port_descr_type] =>
|
[port_descr_descr] =>
|
[port_descr_circuit] =>
|
[port_descr_speed] =>
|
[port_descr_notes] =>
|
[ifDescr] => xe-0/0/50:1
|
[ifName] => xe-0/0/50:1
|
[ifIndex] => 637
|
[ifSpeed] => 10000000000
|
[ifConnectorPresent] => true
|
[ifPromiscuousMode] => false
|
[ifHighSpeed] => 10000
|
[ifOperStatus] => up
|
[ifAdminStatus] => up
|
[ifDuplex] => fullDuplex
|
[ifMtu] => 1514
|
[ifType] => ethernetCsmacd
|
[ifAlias] => C24 Shopping FG 600E FW01 LAN (Port X2)
|
[ifPhysAddress] => 5c4527b7597c
|
[ifHardType] =>
|
[ifLastChange] => 2021-12-14 05:34:16
|
[ifVlan] => 0
|
[ifTrunk] =>
|
[ifVrf] =>
|
[encrypted] => 0
|
[ignore] => 0
|
[disabled] => 0
|
[detailed] => 0
|
[deleted] => 0
|
[ifInUcastPkts] => 5145933585556
|
[ifInUcastPkts_rate] => 312381
|
[ifOutUcastPkts] => 4958827726217
|
[ifOutUcastPkts_rate] => 292765
|
[ifInErrors] => 0
|
[ifInErrors_rate] => 0
|
[ifOutErrors] => 0
|
[ifOutErrors_rate] => 0
|
[ifOctets_rate] => 390054280
|
[ifUcastPkts_rate] => 605146
|
[ifErrors_rate] => 0
|
[ifInOctets] => 3723131456548890
|
[ifInOctets_rate] => 207880901
|
[ifOutOctets] => 3543769352287220
|
[ifOutOctets_rate] => 182173379
|
[ifInOctets_perc] => 17
|
[ifOutOctets_perc] => 15
|
[poll_time] => 1660567394
|
[poll_period] => 347
|
[ifInErrors_delta] => 0
|
[ifOutErrors_delta] => 0
|
[ifInNUcastPkts] => 7858138
|
[ifInNUcastPkts_rate] => 0
|
[ifOutNUcastPkts] => 136558114
|
[ifOutNUcastPkts_rate] => 4
|
[ifInBroadcastPkts] => 7149744
|
[ifInBroadcastPkts_rate] => 0
|
[ifOutBroadcastPkts] => 120695016
|
[ifOutBroadcastPkts_rate] => 3
|
[ifInMulticastPkts] => 708394
|
[ifInMulticastPkts_rate] => 0
|
[ifOutMulticastPkts] => 15863098
|
[ifOutMulticastPkts_rate] => 1
|
[port_mcbc] => 1
|
[ifInDiscards] => 0
|
[ifInDiscards_rate] => 0
|
[ifOutDiscards] => 32999907
|
[ifOutDiscards_rate] => 0
|
[ifDiscards_rate] => 0
|
[attribs] => Array
|
(
|
[jnx_cos_queues] => [0,1,2,3,4,5,6,7,8,9,10,11]
|
)
|
|
[human_speed] => 10Gbps
|
[human_type] => Ethernet
|
[html_class] =>
|
[human_mac] => 5c:45:27:b7:59:7c
|
[entity_name] => xe-0/0/50:1
|
[entity_shortname] => xe-0/0/50:1
|
[entity_descr] => C24 Shopping FG 600E FW01 LAN (Port X2)
|
[table_tab_colour] => #194B7F
|
[row_class] => ok
|
[icon] => port-up
|
[admin_status] => enabled
|
[admin_class] => primary
|
[oper_class] => primary
|
[in_rate] => 1663047208
|
[out_rate] => 1457387032
|
[bps_in_style] => color: #008C00;
|
[bps_out_style] => color: #394182;
|
[pps_in_style] => color: #740074;
|
[pps_out_style] => color: #FF7400;
|
[humanized] => 1
|
)
|
|
[10434] => Array
|
(
|
[port_id] => 10434
|
[device_id] => 68
|
[port_64bit] => 1
|
[port_label] => xe-0/0/50:2
|
[port_label_base] => xe-
|
[port_label_num] => 0/0/50:2
|
[port_label_short] => xe-0/0/50:2
|
[port_descr_type] =>
|
[port_descr_descr] =>
|
[port_descr_circuit] =>
|
[port_descr_speed] =>
|
[port_descr_notes] =>
|
[ifDescr] => xe-0/0/50:2
|
[ifName] => xe-0/0/50:2
|
[ifIndex] => 638
|
[ifSpeed] => 10000000000
|
[ifConnectorPresent] => true
|
[ifPromiscuousMode] => false
|
[ifHighSpeed] => 10000
|
[ifOperStatus] => down
|
[ifAdminStatus] => up
|
[ifDuplex] => fullDuplex
|
[ifMtu] => 1514
|
[ifType] => ethernetCsmacd
|
[ifAlias] =>
|
[ifPhysAddress] => 5c4527b7597d
|
[ifHardType] =>
|
[ifLastChange] => 2021-12-14 05:34:13
|
[ifVlan] =>
|
[ifTrunk] =>
|
[ifVrf] =>
|
[encrypted] => 0
|
[ignore] => 0
|
[disabled] => 0
|
[detailed] => 0
|
[deleted] => 0
|
[ifInUcastPkts] => 0
|
[ifInUcastPkts_rate] => 0
|
[ifOutUcastPkts] => 0
|
[ifOutUcastPkts_rate] => 0
|
[ifInErrors] => 0
|
[ifInErrors_rate] => 0
|
[ifOutErrors] => 0
|
[ifOutErrors_rate] => 0
|
[ifOctets_rate] => 0
|
[ifUcastPkts_rate] => 0
|
[ifErrors_rate] => 0
|
[ifInOctets] => 0
|
[ifInOctets_rate] => 0
|
[ifOutOctets] => 0
|
[ifOutOctets_rate] => 0
|
[ifInOctets_perc] => 0
|
[ifOutOctets_perc] => 0
|
[poll_time] => 1660567394
|
[poll_period] => 347
|
[ifInErrors_delta] => 0
|
[ifOutErrors_delta] => 0
|
[ifInNUcastPkts] => 0
|
[ifInNUcastPkts_rate] => 0
|
[ifOutNUcastPkts] => 0
|
[ifOutNUcastPkts_rate] => 0
|
[ifInBroadcastPkts] => 0
|
[ifInBroadcastPkts_rate] => 0
|
[ifOutBroadcastPkts] => 0
|
[ifOutBroadcastPkts_rate] => 0
|
[ifInMulticastPkts] => 0
|
[ifInMulticastPkts_rate] => 0
|
[ifOutMulticastPkts] => 0
|
[ifOutMulticastPkts_rate] => 0
|
[port_mcbc] => 1
|
[ifInDiscards] => 0
|
[ifInDiscards_rate] => 0
|
[ifOutDiscards] => 0
|
[ifOutDiscards_rate] => 0
|
[ifDiscards_rate] => 0
|
[attribs] => Array
|
(
|
[jnx_cos_queues] => [0,1,2,3,4,5,6,7,8,9,10,11]
|
)
|
|
[human_speed] => 10Gbps
|
[human_type] => Ethernet
|
[html_class] => red
|
[human_mac] => 5c:45:27:b7:59:7d
|
[entity_name] => xe-0/0/50:2
|
[entity_shortname] => xe-0/0/50:2
|
[entity_descr] =>
|
[table_tab_colour] => #cc0000
|
[row_class] => error
|
[icon] => port-down
|
[admin_status] => enabled
|
[admin_class] => primary
|
[oper_class] => error
|
[in_rate] => 0
|
[out_rate] => 0
|
[bps_in_style] =>
|
[bps_out_style] =>
|
[pps_in_style] =>
|
[pps_out_style] =>
|
[humanized] => 1
|
)
|
|
[10435] => Array
|
(
|
[port_id] => 10435
|
[device_id] => 68
|
[port_64bit] => 1
|
[port_label] => xe-0/0/50:3
|
[port_label_base] => xe-
|
[port_label_num] => 0/0/50:3
|
[port_label_short] => xe-0/0/50:3
|
[port_descr_type] =>
|
[port_descr_descr] =>
|
[port_descr_circuit] =>
|
[port_descr_speed] =>
|
[port_descr_notes] =>
|
[ifDescr] => xe-0/0/50:3
|
[ifName] => xe-0/0/50:3
|
[ifIndex] => 639
|
[ifSpeed] => 10000000000
|
[ifConnectorPresent] => true
|
[ifPromiscuousMode] => false
|
[ifHighSpeed] => 10000
|
[ifOperStatus] => down
|
[ifAdminStatus] => up
|
[ifDuplex] => fullDuplex
|
[ifMtu] => 1514
|
[ifType] => ethernetCsmacd
|
[ifAlias] =>
|
[ifPhysAddress] => 5c4527b7597e
|
[ifHardType] =>
|
[ifLastChange] => 2021-12-14 05:34:13
|
[ifVlan] =>
|
[ifTrunk] =>
|
[ifVrf] =>
|
[encrypted] => 0
|
[ignore] => 0
|
[disabled] => 0
|
[detailed] => 0
|
[deleted] => 0
|
[ifInUcastPkts] => 0
|
[ifInUcastPkts_rate] => 0
|
[ifOutUcastPkts] => 0
|
[ifOutUcastPkts_rate] => 0
|
[ifInErrors] => 0
|
[ifInErrors_rate] => 0
|
[ifOutErrors] => 0
|
[ifOutErrors_rate] => 0
|
[ifOctets_rate] => 0
|
[ifUcastPkts_rate] => 0
|
[ifErrors_rate] => 0
|
[ifInOctets] => 0
|
[ifInOctets_rate] => 0
|
[ifOutOctets] => 0
|
[ifOutOctets_rate] => 0
|
[ifInOctets_perc] => 0
|
[ifOutOctets_perc] => 0
|
[poll_time] => 1660567394
|
[poll_period] => 347
|
[ifInErrors_delta] => 0
|
[ifOutErrors_delta] => 0
|
[ifInNUcastPkts] => 0
|
[ifInNUcastPkts_rate] => 0
|
[ifOutNUcastPkts] => 0
|
[ifOutNUcastPkts_rate] => 0
|
[ifInBroadcastPkts] => 0
|
[ifInBroadcastPkts_rate] => 0
|
[ifOutBroadcastPkts] => 0
|
[ifOutBroadcastPkts_rate] => 0
|
[ifInMulticastPkts] => 0
|
[ifInMulticastPkts_rate] => 0
|
[ifOutMulticastPkts] => 0
|
[ifOutMulticastPkts_rate] => 0
|
[port_mcbc] => 1
|
[ifInDiscards] => 0
|
[ifInDiscards_rate] => 0
|
[ifOutDiscards] => 0
|
[ifOutDiscards_rate] => 0
|
[ifDiscards_rate] => 0
|
[attribs] => Array
|
(
|
[jnx_cos_queues] => [0,1,2,3,4,5,6,7,8,9,10,11]
|
)
|
|
[human_speed] => 10Gbps
|
[human_type] => Ethernet
|
[html_class] => red
|
[human_mac] => 5c:45:27:b7:59:7e
|
[entity_name] => xe-0/0/50:3
|
[entity_shortname] => xe-0/0/50:3
|
[entity_descr] =>
|
[table_tab_colour] => #cc0000
|
[row_class] => error
|
[icon] => port-down
|
[admin_status] => enabled
|
[admin_class] => primary
|
[oper_class] => error
|
[in_rate] => 0
|
[out_rate] => 0
|
[bps_in_style] =>
|
[bps_out_style] =>
|
[pps_in_style] =>
|
[pps_out_style] =>
|
[humanized] => 1
|
)
|
|
)
|
|
expected would be only the first array Element, because the other 4 results have more in chars in the ifDescr field than i requested.
Can you tell me how i could workaround this / fix it?