fix(interfaces): report the WAN speed in Mbit/s
NewLayer1DownstreamMaxBitRate is bit/s; dividing by 1000 gave kbit/s, so a 250 Mbit/s line came out as 250000 in a field NAPALM defines as Mbit/s. Closes #2
This commit is contained in:
1 parent
5dbfe62271
commit
3783f74eb8
3 files changed
+10
-1
No files matched your search
@@ -393,6 +393,10 @@ class TestGetInterfaces:
|
||||
assert interfaces["wan"]["is_up"] is True
|
||||
assert interfaces["wan"]["description"] == "DSL"
|
||||
|
||||
def test_wan_speed_in_mbit(self, driver):
|
||||
# NewLayer1DownstreamMaxBitRate is bit/s: 250 000 000 bit/s is 250 Mbit/s.
|
||||
assert driver.get_interfaces()["wan"]["speed"] == 250.0
|
||||
|
||||
def test_wlan_interfaces_present(self, driver):
|
||||
interfaces = driver.get_interfaces()
|
||||
assert interfaces["wlanconfiguration1"]["description"] == "MyWifi"
|
||||
|
||||
Reference in new issue
Block a user