Make sure cli_patch is valid even when networking-sfc is not installed
Change-Id: Ibfdf12915781f39ff5ad03bee7e927aeff617829
This commit is contained in:
parent
3d45bd3836
commit
43b66ea9b5
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue