diff options
author | Klement Sekera <ksekera@cisco.com> | 2017-02-23 09:26:30 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-03-02 11:56:47 +0000 |
commit | 738844871220f853629504f61c248f0c9402dc77 (patch) | |
tree | 63892d6c317c1d1067f9ecd2a913d2ac7c671fcb /test/bfd.py | |
parent | c3a814be9dc769be942ff8029c7b6eccd4b3af05 (diff) |
BFD: command line interface
Implement command line interface to the BFD binary APIs. Add
corresponding unit tests.
Change-Id: Ia0542d0bc4c8d78e6f7b777a08fd94ebfe4d524f
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/bfd.py')
-rw-r--r-- | test/bfd.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/bfd.py b/test/bfd.py index b467cc79eea..d1d948b323e 100644 --- a/test/bfd.py +++ b/test/bfd.py @@ -198,6 +198,10 @@ class VppBFDAuthKey(VppObject): """ key data """ return self._key + @key.setter + def key(self, value): + self._key = value + @property def conf_key_id(self): """ configuration key ID """ @@ -249,7 +253,10 @@ class VppBFDUDPSession(VppObject): self._required_min_rx = required_min_rx self._detect_mult = detect_mult self._sha1_key = sha1_key - self._bfd_key_id = bfd_key_id if bfd_key_id else randint(0, 255) + if bfd_key_id is not None: + self._bfd_key_id = bfd_key_id + else: + self._bfd_key_id = randint(0, 255) @property def test(self): |