aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/salt-formulas
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-07-03 14:36:08 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-07-16 12:40:42 +0000
commit54acfffcbc655b72912eef4c1b2133a3b8feec1d (patch)
tree5495fd148aafb60279f3c79efa1f3bc0a7bcd85d /mcp/salt-formulas
parentbd267864cf74da908379dedc378600501149477d (diff)
[salt-formulas] opnfv: Drop obsolete route_wrapper
Change-Id: I84a4789ff2155d7c14f9ffd9bfe54c5bca7a0d4f Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/salt-formulas')
-rw-r--r--mcp/salt-formulas/opnfv/route_wrapper.sls27
1 files changed, 0 insertions, 27 deletions
diff --git a/mcp/salt-formulas/opnfv/route_wrapper.sls b/mcp/salt-formulas/opnfv/route_wrapper.sls
deleted file mode 100644
index 6132f317e..000000000
--- a/mcp/salt-formulas/opnfv/route_wrapper.sls
+++ /dev/null
@@ -1,27 +0,0 @@
-##############################################################################
-# Copyright (c) 2018 Mirantis Inc., Enea AB and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-/usr/local/sbin/route:
- file.managed:
- - contents: |
- #!/bin/sh
-
- # Workaround salt-managed routes breaking ifup when route already exists
- route_binary='/sbin/route'
- route_output=$("${route_binary}" "$@" 2>&1)
- route_return=$?
-
- if [ -n "${route_output}" ]; then
- if echo "${route_output}" | grep -q 'SIOCADDRT: File exists'; then
- exit 0
- fi
- echo "${route_output}"
- fi
- exit "${route_return}"
- - user: root
- - group: root
- - mode: 755