summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-10-06 14:31:56 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2017-10-13 14:17:26 +0200
commit802116db43381f67b873e7e0283485c4ff035fc9 (patch)
treeead34c2f05e45967e530cc597c30cf7c6319d069
parent76c5b2f94ed0f11bda5caa13577f5bc96ff64d66 (diff)
downloadNetworkManager-802116db43381f67b873e7e0283485c4ff035fc9.tar.gz
tui: add group-forward-mask property to bridge page
The validation on allowed bits is done when the user saves the connection. https://bugzilla.redhat.com/show_bug.cgi?id=1358615
-rw-r--r--clients/tui/nmt-page-bridge.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clients/tui/nmt-page-bridge.c b/clients/tui/nmt-page-bridge.c
index 08526db420..cf141f5905 100644
--- a/clients/tui/nmt-page-bridge.c
+++ b/clients/tui/nmt-page-bridge.c
@@ -147,6 +147,12 @@ nmt_page_bridge_constructed (GObject *object)
label = nmt_newt_label_new (_("seconds"));
nmt_editor_grid_append (grid, _("Max age"), widget, label);
+ widget = nmt_newt_entry_numeric_new (10, 0, 65535);
+ g_object_bind_property (s_bridge, NM_SETTING_BRIDGE_GROUP_FORWARD_MASK,
+ widget, "text",
+ G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
+ nmt_editor_grid_append (grid, _("Group forward mask"), widget, NULL);
+
nmt_editor_page_add_section (NMT_EDITOR_PAGE (bridge), section);
G_OBJECT_CLASS (nmt_page_bridge_parent_class)->constructed (object);