From 6298b7c35ed4a7411d8e8da1008efc0f585ffb75 Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Fri, 12 Aug 2016 18:07:24 -0230 Subject: Add constraint to prohibit balance-tcp from BondInterfaceOvsOptions This patch adds an allowed_pattern contraint that uses a negative lookahead assertion to only allow options strings that do not contain the 'balance-tcp' option. Change-Id: Icf8874e4e585f9a42d38091f8b38c3685f403cf1 Partial-Bug: #1612786 --- network/config/bond-with-vlans/compute.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'network/config/bond-with-vlans/compute.yaml') diff --git a/network/config/bond-with-vlans/compute.yaml b/network/config/bond-with-vlans/compute.yaml index 19c011eb..b2cfb0a2 100644 --- a/network/config/bond-with-vlans/compute.yaml +++ b/network/config/bond-with-vlans/compute.yaml @@ -38,6 +38,11 @@ parameters: description: The ovs_options string for the bond interface. Set things like lacp=active and/or bond_mode=balance-slb using this option. type: string + constraints: + - allowed_pattern: "^((?!balance.tcp).)*$" + description: | + The balance-tcp bond mode is known to cause packet loss and + should not be used in BondInterfaceOvsOptions. ExternalNetworkVlanID: default: 10 description: Vlan ID for the external network traffic. -- cgit 1.2.3-korg