areguera / rpms / cockpit

Forked from rpms/cockpit 5 years ago
Clone

Blame SOURCES/0002-networkmanager-Fix-regression-re-activation-of-virtu.patch

9454e5
From 31ca89dd1d0f90bf0249585093435926eee88cb5 Mon Sep 17 00:00:00 2001
9454e5
From: Marius Vollmer <mvollmer@redhat.com>
9454e5
Date: Wed, 2 Nov 2016 11:10:42 +0200
9454e5
Subject: [2/7] networkmanager: Fix regression re activation of virtual
9454e5
 interfaces
9454e5
9454e5
https://bugzilla.redhat.com/show_bug.cgi?id=1394667
9454e5
9454e5
Upstream commit:
9454e5
6961a619a3d9012f7a2ac19e8c235e43a2cd216d
9454e5
    networkmanager: Fix regression re activation of virtual interfaces
9454e5
9454e5
Closes #5363
9454e5
Signed-off-by: Stef Walter <stefw@redhat.com>
9454e5
 * Signing off inclusion in the rhel-7.3.1 branch
9454e5
---
9454e5
 dist/networkmanager/network.js     | Bin 132973 -> 132949 bytes
9454e5
 dist/networkmanager/network.js.map | Bin 1028824 -> 1028731 bytes
9454e5
 pkg/networkmanager/interfaces.js   |  12 ++++++------
9454e5
 test/verify/check-networking       |  30 ++++++++++++++++++++++++++++++
9454e5
 4 files changed, 36 insertions(+), 6 deletions(-)
9454e5
9454e5
diff --git a/dist/networkmanager/network.js b/dist/networkmanager/network.js
9454e5
index e734b5eb9154334f16b67e6560398e3b4eb02b40..2cdd210a34666121baf778b40b08a492e131861b 100644
9454e5
GIT binary patch
9454e5
delta 75
9454e5
zcmaFc$8oifV}oWjYf5TaeBNY(YIz82b6E9eMkb)h#+j0nHEVfT;`0)7H`~>!K?RlB
9454e5
S!5R{Cn`hN+pH;_rxdQ-J3>~fj
9454e5
9454e5
delta 110
9454e5
zcmccG$MLq0V}oWjduCc<a;l!+WW8#6J}5geH&s)!R%fzTt=#7F>OMwJJ
9454e5
j$(*&y2;OFcS~X
9454e5
9454e5
diff --git a/dist/networkmanager/network.js.map b/dist/networkmanager/network.js.map
9454e5
index 822a55bc7e063b5ff67c323123ec021228d9a479..b037e826b92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
9454e5
diff --git a/pkg/networkmanager/interfaces.js b/pkg/networkmanager/interfaces.js
9454e5
index 3b5b14b..9c2cf43 100644
9454e5
--- a/pkg/networkmanager/interfaces.js
9454e5
+++ b/pkg/networkmanager/interfaces.js
9454e5
@@ -2139,8 +2139,8 @@ PageNetworkInterface.prototype = {
9454e5
                 modify,
9454e5
                 cockpit.format(_("Deleting $0 will break the connection to the server, " +
9454e5
                                  "and will make the administration UI unavailable."),
9454e5
-                               self.iface.Name),
9454e5
-                cockpit.format(_("Delete $0"), self.iface.Name));
9454e5
+                               self.dev_name),
9454e5
+                cockpit.format(_("Delete $0"), self.dev_name));
9454e5
         }
9454e5
     },
9454e5
 
9454e5
@@ -2171,8 +2171,8 @@ PageNetworkInterface.prototype = {
9454e5
             modify,
9454e5
             cockpit.format(_("Switching on $0  will break the connection to the server, " +
9454e5
                              "and will make the administration UI unavailable."),
9454e5
-                           self.dev.Interface),
9454e5
-            cockpit.format(_("Switch on $0"), self.dev.Interface));
9454e5
+                           self.dev_name),
9454e5
+            cockpit.format(_("Switch on $0"), self.dev_name));
9454e5
     },
9454e5
 
9454e5
     disconnect: function() {
9454e5
@@ -2196,8 +2196,8 @@ PageNetworkInterface.prototype = {
9454e5
             modify,
9454e5
             cockpit.format(_("Switching off $0  will break the connection to the server, " +
9454e5
                              "and will make the administration UI unavailable."),
9454e5
-                           self.dev.Interface),
9454e5
-            cockpit.format(_("Switch off $0"), self.dev.Interface));
9454e5
+                           self.dev_name),
9454e5
+            cockpit.format(_("Switch off $0"), self.dev_name));
9454e5
     },
9454e5
 
9454e5
     update: function() {
9454e5
diff --git a/test/verify/check-networking b/test/verify/check-networking
9454e5
index a318e5c..1133eec 100755
9454e5
--- a/test/verify/check-networking
9454e5
+++ b/test/verify/check-networking
9454e5
@@ -371,6 +371,36 @@ class TestNetworking(MachineCase):
9454e5
         b.wait_visible("#networking")
9454e5
         b.wait_not_present("#networking-interfaces tr[data-interface='tbridge']")
9454e5
 
9454e5
+    def testVlan(self):
9454e5
+        b = self.browser
9454e5
+        m = self.machine
9454e5
+
9454e5
+        iface = self.get_iface(m, m.macaddr)
9454e5
+
9454e5
+        self.login_and_go("/network")
9454e5
+        self.wait_for_iface(iface)
9454e5
+
9454e5
+        # Make a VLAN interface
9454e5
+        b.click("button:contains('Add VLAN')")
9454e5
+        b.wait_popup("network-vlan-settings-dialog")
9454e5
+        b.set_val("#network-vlan-settings-dialog tr:contains('Name') input", "tvlan")
9454e5
+        b.set_val("#network-vlan-settings-dialog tr:contains('VLAN Id') input", "123")
9454e5
+        b.click("#network-vlan-settings-dialog button:contains('Apply')")
9454e5
+        b.wait_popdown("network-vlan-settings-dialog")
9454e5
+        b.wait_present("#networking-interfaces tr[data-interface='tvlan']")
9454e5
+
9454e5
+        # Activate it.  It wont get an IP address, but that's okay.
9454e5
+        b.click("#networking-interfaces tr[data-interface='tvlan'] td:first-child")
9454e5
+        b.wait_visible("#network-interface")
9454e5
+        b.wait_in_text("tr:contains('Status')", "Inactive")
9454e5
+        b.click(".panel-heading .btn:contains('On')")
9454e5
+        b.wait_not_in_text("tr:contains('Status')", "Inactive")
9454e5
+
9454e5
+        # Delete it
9454e5
+        b.click("#network-interface button:contains('Delete')")
9454e5
+        b.wait_visible("#networking")
9454e5
+        b.wait_not_present("#networking-interfaces tr[data-interface='tvlan']")
9454e5
+
9454e5
     def testOther(self):
9454e5
         b = self.browser
9454e5
         m = self.machine
9454e5
-- 
9454e5
2.5.5
9454e5