code stringlengths 3 6.57k |
|---|
key.lower() |
key.lower() |
d.open() |
ServiceUnavailable("Error connecting to the device at {}: {}".format(ip_address, e) |
hasattr(driver, method) |
method.startswith('get_') |
getattr(d, method) |
format(method, driver) |
format(method, e) |
d.close() |
Response(response) |
ConsolePortViewSet(CableTraceMixin, ModelViewSet) |
ConsolePort.objects.prefetch_related('device', 'connected_endpoint__device', 'cable', 'tags') |
ConsoleServerPortViewSet(CableTraceMixin, ModelViewSet) |
ConsoleServerPort.objects.prefetch_related('device', 'connected_endpoint__device', 'cable', 'tags') |
PowerPortViewSet(CableTraceMixin, ModelViewSet) |
PowerOutletViewSet(CableTraceMixin, ModelViewSet) |
PowerOutlet.objects.prefetch_related('device', 'connected_endpoint__device', 'cable', 'tags') |
InterfaceViewSet(CableTraceMixin, ModelViewSet) |
action(detail=True) |
graphs(self, request, pk) |
get_object_or_404(Interface, pk=pk) |
Graph.objects.filter(type__model='interface') |
RenderedGraphSerializer(queryset, many=True, context={'graphed_object': interface}) |
Response(serializer.data) |
FrontPortViewSet(CableTraceMixin, ModelViewSet) |
FrontPort.objects.prefetch_related('device__device_type__manufacturer', 'rear_port', 'cable', 'tags') |
RearPortViewSet(CableTraceMixin, ModelViewSet) |
RearPort.objects.prefetch_related('device__device_type__manufacturer', 'cable', 'tags') |
DeviceBayViewSet(ModelViewSet) |
DeviceBay.objects.prefetch_related('installed_device') |
prefetch_related('tags') |
InventoryItemViewSet(ModelViewSet) |
InventoryItem.objects.prefetch_related('device', 'manufacturer') |
prefetch_related('tags') |
ConsoleConnectionViewSet(ListModelMixin, GenericViewSet) |
PowerConnectionViewSet(ListModelMixin, GenericViewSet) |
InterfaceConnectionViewSet(ListModelMixin, GenericViewSet) |
F('_connected_interface') |
CableViewSet(ModelViewSet) |
VirtualChassisViewSet(ModelViewSet) |
VirtualChassis.objects.prefetch_related('tags') |
Count('members') |
PowerPanelViewSet(ModelViewSet) |
Count('powerfeeds') |
PowerFeedViewSet(CustomFieldModelViewSet) |
PowerFeed.objects.prefetch_related('power_panel', 'rack', 'tags') |
ConnectedDeviceViewSet(ViewSet) |
device (if any) |
get_view_name(self) |
list(self, request) |
request.query_params.get(self._device_param.name) |
request.query_params.get(self._interface_param.name) |
MissingFilterException(detail='Request must include "peer_device" and "peer_interface" filters.') |
get_object_or_404(Interface, device__name=peer_device_name, name=peer_interface_name) |
Response() |
Response(serializers.DeviceSerializer(local_interface.device, context={'request': request}) |
Copyright (C) |
Script(BaseScript) |
execute_cli(self, interface=None) |
self.cli("show interfaces status", cached=True) |
self.rx_port.finditer(v) |
if (interface is not None) |
and (interface == match.group("port") |
match.group("port") |
match.group("oper_status") |
match.group("port") |
match.group("oper_status") |
DiffLexer(RegexLexer) |
analyse_text(text) |
DarcsPatchLexer(RegexLexer) |
join(DPATCH_KEYWORDS) |
bygroups(Text, Keyword, Text) |
clarity
(r'\n', Text, "#pop") |
based
(r'\[_[^_]*_]', Operator) |
include('specialText') |
include('specialText') |
WDiffLexer(RegexLexer) |
output (without option like -l) |
__init__(self) |
int(input("\nInforme a quantidade de discos: ") |
adiciona_discos(self, torre_inicial) |
self.add_disco() |
range(self._numero_discos) |
torre_inicial.empilha(discos[ix]) |
add_disco(self) |
open('disco.txt', 'r') |
discos.append(Disco(int(linha) |
numero_discos(self) |
status_torres(self, torres) |
print('\nNumero de discos: ' + str(self._numero_discos) |
torre.to_string() |
os.path.split(__file__) |
open(path + "/longnames.json") |
json.load(f) |
Logger(object) |
echo (bool) |
__init__(self, filename, echo=False) |
bool(echo) |
open(filename, "w", 0) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.