Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2012-05-22 10:07:51.223698)
- Working directory: /opt/noc
- <type 'exceptions.AttributeError'>
- 'NoneType' object has no attribute 'prefix'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/ip/apps/ipam/views.py (Line: 653)
- Function: view_change_prefix
- 646 # Process dual-stack linking
- 647 ds_prefix = form.cleaned_data["dual_stack_prefix"]
- 648 self.process_dual_stacking(prefix, ds_prefix)
- 649 return self.response_redirect("ip:ipam:vrf_index", vrf.id, afi,
- 650 prefix.prefix)
- 651 else:
- 652 if afi == "4":
- 653 ==> ds_prefix = prefix.ipv6_transition.prefix
- 654 else:
- 655 ds_prefix = prefix.ipv4_transition.prefix
- 656 initial={
- 657 "asn": prefix.asn.id,
- 658 "state": prefix.state.id,
- 659 "vc": prefix.vc.id if prefix.vc else None,
- Variables:
- afi = u'4'
- can_bind_vc = True
- get_form_class = <function get_form_class at 0x808f9d488>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '15fc69f1ce3ad129e1695ed1affac5e2',
- 'sessionid': 'ea43713788bea92af05c2f2957188983'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=15fc69f1ce3ad129e1695ed1affac5e2; sessionid=ea43713788bea92af05c2f2957188983',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc/ip/ipam/30/4/10.0.2.0/24/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0',
- 'PATH_INFO': u'/ip/ipam/30/4/10.0.2.0/24/change/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8040ec5d0>,
- 'wsgi.input': <_io.BytesIO object at 0x809248170>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- prefix = <Prefix: dlink(4): 10.0.2.0/24>
- form_class = <class 'noc.ip.apps.ipam.views.EditPrefixForm'>
- vrf_id = u'30'
- self = <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>
- vrf = <VRF: dlink>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/site.py (Line: 225)
- Function: inner
- 218 for k, v in request.POST.lists())
- 219 elif request.method == "GET":
- 220 a = dict((k, v[0] if len(v) == 1 else v)
- 221 for k, v in request.GET.lists())
- 222 logging.debug("API %s %s %s" % (request.method,
- 223 request.path, a))
- 224 # Call handler
- 225 ==> r = v(request, *args, **kwargs)
- 226 # Dump SQL statements
- 227 if self.log_sql_statements:
- 228 from django.db import connections
- 229 tsc = 0
- 230 sc = defaultdict(int)
- 231 for conn in connections.all():
- Variables:
- args = ()
- view_map = {'PUT': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>, 'POST': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>, 'GET': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>, 'DELETE': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x806366250>
- v = <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '15fc69f1ce3ad129e1695ed1affac5e2',
- 'sessionid': 'ea43713788bea92af05c2f2957188983'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=15fc69f1ce3ad129e1695ed1affac5e2; sessionid=ea43713788bea92af05c2f2957188983',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc/ip/ipam/30/4/10.0.2.0/24/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0',
- 'PATH_INFO': u'/ip/ipam/30/4/10.0.2.0/24/change/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8040ec5d0>,
- 'wsgi.input': <_io.BytesIO object at 0x809248170>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- to_log_api_call = False
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- kwargs = {'vrf_id': u'30', 'prefix': u'10.0.2.0/24', 'afi': u'4'}
- app = <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement