diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-03-16 16:28:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-16 16:28:11 +0200 |
| commit | a460235665034eb645a41b786d14aa14f8405aca (patch) | |
| tree | c108a8bdc32bdff4a40f93d1b33d25d6c928f771 /src | |
| parent | c6dda7da4f382a9ad905b69dcffed6e9373bace8 (diff) | |
| parent | c782554b5ee89badf584012347fe9b6182336939 (diff) | |
| download | vyos-1x-a460235665034eb645a41b786d14aa14f8405aca.tar.gz vyos-1x-a460235665034eb645a41b786d14aa14f8405aca.zip | |
Merge pull request #5056 from natali-rs1985/T8353
T8353: Raise DataUnavailable if no VPP LACP interfaces are configured
Diffstat (limited to 'src')
| -rwxr-xr-x | src/op_mode/vpp.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/op_mode/vpp.py b/src/op_mode/vpp.py index 6ce7eed6e..db9474e91 100755 --- a/src/op_mode/vpp.py +++ b/src/op_mode/vpp.py @@ -229,6 +229,11 @@ class VPPShow: def lacp_info(self, raw: bool, ifname: typing.Optional[str]): data = self._get_lacp_raw(ifname) + if not data: + raise vyos.opmode.DataUnavailable( + 'No VPP interface is configured with LACP (802.3ad) mode' + ) + if raw: return data |
