Make sure cli_patch is valid even when networking-sfc is not installed

Change-Id: Ibfdf12915781f39ff5ad03bee7e927aeff617829
This commit is contained in:
Ivar Lazzaro 2018-04-11 13:30:49 -07:00
parent 3d45bd3836
commit 43b66ea9b5
No known key found for this signature in database
GPG Key ID: ACEEC8CB558DC3CF
1 changed files with 8 additions and 7 deletions

View File

@ -10,17 +10,18 @@
# License for the specific language governing permissions and limitations
# under the License.
API_NAME = 'sfc_patch'
API_VERSION_OPTION = ''
def build_option_parser(parser):
"""Hook to add global options"""
return parser
try:
from networking_sfc.cli import port_pair_group
from networking_sfc.osc.sfc import port_pair_group as osc_ppg
API_NAME = 'sfc_patch'
API_VERSION_OPTION = ''
def build_option_parser(parser):
"""Hook to add global options"""
return parser
# Removing field limitation
def add_known_arguments(self, parser):
parser.add_argument(