def _inner(switch_name, partition_name, options):
    cmd = f'stack add switch partition {switch_name} name={partition_name} '
    if (options is not None):
        cmd += f'options={options}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to add a dummy switch partition')
def _inner(switch_name, partition_name, options):
    cmd = f'stack add switch partition {switch_name} name={partition_name} '
    if (options is not None):
        cmd += f'options={options}'
    result = subprocess.run(cmd.split())
    if (result.returncode != 0):
        pytest.fail('unable to add a dummy switch partition')