How to ignore errors or generate them in Ansible?
SRE / Platform Engineer
What is the difference between CMD and ENTRYPOINT in Docker?
How to find queries in PostgreSQL that run longer than one minute (or 5 seconds)?
How to view container logs and how to connect to it?
What is autovacuum in PostgreSQL?
How did you access the router when the tunnel failed — via external IP?
1. Write the Python object "switches" to YAML format 2. Transform "switches" so that it only contains "cisco" switches 3. Use the standard module ipaddress to get the last host address in the network "172.16.0.0/28" 4. Parse "dhcp_snooping_table" into a list of dictionaries: dhcp_snooping_table_parsed = [ { "mac": "00:E9:8C:3F:A6:50", "ip": "100.1.1.6", "interface": "FastEthernet0/20", }, { "mac": "00:E9:22:11:A6:50", "ip": "100.1.1.7", "interface": "FastEthernet0/21", } ] 5. Write a class "NetworkSubnet" with 2 methods: get_subnet - returns the first available subnet of the specified length as an IPv4Network object show_network_pool - returns a list of available subnets from ipaddress import IPv4Network class NetworkSubnet: def __init__(self, aggregate_network: str): def get_subnet(self, length: int) -> IPv4Network: def show_network_pool(self) -> list[IPv4Network]: net = NetworkSubnet(aggregate_network="172.16.0.0/24") net_1 = net.get_subnet(length=26) print(f"{net_1=}") net_1=IPv4Network('172.16.0.0/26') print(net.get_subnet(length=25)) 172.16.0.128/25 print(net.get_subnet(length=30)) 172.16.0.64/30 print(net.show_network_pool()) [IPv4Network('172.16.0.0/30'), IPv4Network('172.16.0.72/29'), IPv4Network('172.16.0.80/28'), IPv4Network('172.16.0.96/27')]
Provide examples of critical incidents you responded to within 30 minutes
How to transfer files between jobs in GitLab CI?
Have you ever connected Fluent Bit or Filebeat?