commit | 04a7013b9d6ef605740475f061b42e41d162410a | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Jul 06 12:44:04 2021 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Jul 06 12:44:27 2021 -0700 |
tree | b9c1687ec513c1f8ed981128317b383b321c6f23 | |
parent | 1ddcb20b214b1e53d1ba80caebcabfc80a0272aa [diff] |
Avoid setting UNI status to disabled if it's already down Change-Id: Id2ca815ee46ed623096af93e56184d5c77f96d86
diff --git a/internal/bbsim/devices/uni_port.go b/internal/bbsim/devices/uni_port.go index da16dcc..eeda028 100644 --- a/internal/bbsim/devices/uni_port.go +++ b/internal/bbsim/devices/uni_port.go
@@ -208,6 +208,9 @@ } func (u *UniPort) Disable() error { + if u.OperState.Is(UniStateDown) { + return nil + } return u.OperState.Event(uniTxDisable) }