Skip to content

Commit

Permalink
Set radiomac port type importable, and instance of wifi
Browse files Browse the repository at this point in the history
closes #16981
  • Loading branch information
trasher committed May 6, 2024
1 parent 7531f36 commit f3440e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NetworkPortType.php
Expand Up @@ -106,7 +106,7 @@ public static function getDefaults(): array

$default_instanciations = [
'Ethernet' => [6, 7, 62, 117, 169],
'Wifi' => [71],
'Wifi' => [71, 188],
'Fiberchannel' => [56]
];

Expand Down
9 changes: 8 additions & 1 deletion tests/functional/NetworkPortType.php
Expand Up @@ -54,7 +54,6 @@ public function testDefaults()
'FROM' => \NetworkPortType::getTable(),
'WHERE' => ['is_importable' => true]
]);
$this->integer(count($iterator))->isIdenticalTo(7);

$expecteds = [
[
Expand Down Expand Up @@ -99,9 +98,17 @@ public function testDefaults()
'comment' => 'Multirate HDSL2 [Bob_Ray]',
'is_importable' => 1,
'instantiation_type' => 'NetworkPortEthernet',
], [
'value_decimal' => 188,
'name' => 'radioMAC',
'comment' => 'MAC layer over radio links [Daniele_Behar]',
'is_importable' => 1,
'instantiation_type' => 'NetworkPortWifi',
]
];

$this->integer(count($iterator))->isIdenticalTo(count($expecteds));

foreach ($iterator as $row) {
$expected = array_shift($expecteds);
$expected += [
Expand Down

0 comments on commit f3440e8

Please sign in to comment.