[ create a new paste ] login | about

Link: http://codepad.org/yjSsCvSc    [ raw code | fork ]

Plain Text, pasted on Apr 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Task failed: <type 'exceptions.KeyError'>
'iface'
START OF TRACEBACK
------------------------------------------------------------------------
File: /opt/noc/sa/profiles/Vyatta/Vyatta/get_interfaces.py (Line: 92)
Function: execute
   85                         "name": iface.split(".")[0],
   86                         "type": self.type_by_name(iface),
   87                         "admin_status": True,
   88                         "oper_status": True,
   89                         "subinterfaces": [self.get_si(ifaces[iface])]
   90                     }
   91                     if ifaces[iface].get("description"):
   92 ==>                     i["description"] = ifaces["iface"]["description"]
   93                 else:
   94                     continue  # Already processed
   95                 r += [i]
   96             return [{"interfaces": r}]
   97     
   98         def type_by_name(self, name):


Create a new paste based on this one


Comments: