Make sure cli_patch is valid even when networking-sfc is not installed
Change-Id: Ibfdf12915781f39ff5ad03bee7e927aeff617829
This commit is contained in:
@@ -10,17 +10,18 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
API_NAME = 'sfc_patch'
|
||||||
|
API_VERSION_OPTION = ''
|
||||||
|
|
||||||
|
|
||||||
|
def build_option_parser(parser):
|
||||||
|
"""Hook to add global options"""
|
||||||
|
return parser
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from networking_sfc.cli import port_pair_group
|
from networking_sfc.cli import port_pair_group
|
||||||
from networking_sfc.osc.sfc import port_pair_group as osc_ppg
|
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
|
# Removing field limitation
|
||||||
def add_known_arguments(self, parser):
|
def add_known_arguments(self, parser):
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|||||||
Reference in New Issue
Block a user