def METHOD_NAME(context):
    ifname = context.new_ifname
    kind = context.new_ifname
    spec = {'ifname': ifname, 'kind': kind}
    ifobj = context.ndb.interfaces.create(**spec)
    save = dict(ifobj)
    try:
        ifobj.commit()
    except NetlinkError as e:
        assert e.code == 95  # Operation not supported
    assert save == dict(ifobj)
    assert ifobj.state == 'invalid'
    assert not interface_exists(context.netns, ifname=ifname)