def build_occi_network(pool_name):
    cats = []
    cats.append('network; '
                'scheme="http://schemas.ogf.org/occi/infrastructure#"; '
                'class="kind"; title="network resource"; '
                'rel="http://schemas.ogf.org/occi/core#resource"; '
                'location="%s/network/"' % fakes.application_url)
    cats.append('ipnetwork; '
                'scheme="http://schemas.ogf.org/occi/infrastructure/'
                'network#"; class="mixin"; title="IP Networking Mixin"')
    attrs = [
        'occi.core.title="%s"' % pool_name,
        'occi.network.state="active"',
        pool_name % 'occi.core.id="%s"',
    ]
    links = []
    links.append('<%s/network/%s?action=up>; '
                 'rel="http://schemas.ogf.org/occi/'
                 'infrastructure/network/action#up"' %
                 (fakes.application_url, pool_name))
    links.append('<%s/network/%s?action=down>; '
                 'rel="http://schemas.ogf.org/occi/'
                 'infrastructure/network/action#down"' %
                 (fakes.application_url, pool_name))
    result = []
    for c in cats:
        result.append(("Category", c))
    for l in links:
        result.append(("Link", l))
    for a in attrs:
        result.append(("X-OCCI-Attribute", a))
    return result
dataset/ETHPy150Open openstack/ooi/ooi/tests/middleware/test_network_controller.py/build_occi_network/swapped operands of `%`