From 62cda1518e3907238c0a3075db3ded690de025e2 Mon Sep 17 00:00:00 2001 From: "matthias.gatto" Date: Fri, 29 Sep 2023 13:50:16 +0200 Subject: [PATCH] Nets: add state Signed-off-by: matthias.gatto --- osc_tui/vpcsGrid.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/osc_tui/vpcsGrid.py b/osc_tui/vpcsGrid.py index 25ecb2b..cdc9268 100644 --- a/osc_tui/vpcsGrid.py +++ b/osc_tui/vpcsGrid.py @@ -6,7 +6,7 @@ class vpcsGrid(selectableGrid.SelectableGrid): def __init__(self, screen, *args, **keywords): super().__init__(screen, *args, **keywords) - self.col_titles = ["Id", "CIDR", "DHCP Options Id"] + self.col_titles = ["Id", "CIDR", "DHCP Options Id", "State"] def on_selection(line): popup.editVpcs(self.form, line) @@ -19,11 +19,11 @@ def refresh_call(self, name_filter=None): def refresh(self): groups = main.do_search(self.data.copy(), ["NetId", "IpRange", - "DhcpOptionsSetId"]) + "DhcpOptionsSetId", "State"]) values = list() for g in groups: - values.append([g['NetId'], - g['IpRange'], g['DhcpOptionsSetId']]) + values.append([g['NetId'], g['IpRange'], g['DhcpOptionsSetId'], + g["State"]]) self.values = values