diff options
author | Brent Eagles <beagles@redhat.com> | 2016-08-12 18:07:24 -0230 |
---|---|---|
committer | Brent Eagles <beagles@redhat.com> | 2016-08-25 21:57:28 -0230 |
commit | 6298b7c35ed4a7411d8e8da1008efc0f585ffb75 (patch) | |
tree | 8aa3a38c638fe5764f6605b7f5a0d16d0fa550fd /network/config/bond-with-vlans/controller-no-external.yaml | |
parent | c58ed3b63e0c3bf56f58553af31afe5018f31695 (diff) |
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
Diffstat (limited to 'network/config/bond-with-vlans/controller-no-external.yaml')
-rw-r--r-- | network/config/bond-with-vlans/controller-no-external.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/network/config/bond-with-vlans/controller-no-external.yaml b/network/config/bond-with-vlans/controller-no-external.yaml index 6242e2f8..4c3e59fa 100644 --- a/network/config/bond-with-vlans/controller-no-external.yaml +++ b/network/config/bond-with-vlans/controller-no-external.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. |