This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """custom validator to enforce naming convention for site.""" | |
| from nautobot.extras.plugins import PluginCustomValidator | |
| class SiteCustomValidator(PluginCustomValidator): | |
| """ | |
| Custom validator to enforce naming convention for site. | |
| Example of a PluginCustomValidator that checks if the name of a Site object. | |
| contains an invalid characters and if so, raises a ValidationError. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Atacker | |
| # | |
| # Usage: python -u attacker.py <spoofed src> <dst> <dst port> | |
| import sys | |
| from scapy.all import * | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0495d3c8ba3d8c51f29d80e7c200d9b50a742ae60d32e79dcde773283e34fed85d3374121861f088a108132bbd381e6d6bd9462b3ad187581ad8d7ef0a573c56ff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| from ansi2html import Ansi2HTMLConverter | |
| from st2common.runners.base_action import Action | |
| __all__ = [ | |
| 'ConvertANSI2HTML' | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ terraform plan | |
| 2018/01/17 15:55:46 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR] | |
| 2018/01/17 15:55:46 [INFO] Terraform version: 0.11.2 a6008b8a48a749c7c167453b9cf55ffd572b9a5d | |
| 2018/01/17 15:55:46 [INFO] Go runtime version: go1.9.1 | |
| 2018/01/17 15:55:46 [INFO] CLI args: []string{"/usr/sbin/terraform", "plan"} | |
| 2018/01/17 15:55:46 [DEBUG] Attempting to open CLI config file: /home/andersonjd/.terraformrc | |
| 2018/01/17 15:55:46 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
| 2018/01/17 15:55:46 [INFO] CLI command args: []string{"plan"} | |
| 2018/01/17 15:55:46 [INFO] command: empty terraform config, returning nil | |
| 2018/01/17 15:55:46 [DEBUG] command: no data state file found for backend config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This error tag corresponds to syslog messages notifying that the configured | |
| # ospf neighbor has changed state from Full | |
| messages: | |
| # 'error' should be unique and vendor agnostic. Currently we are using the JUNOS syslog message name as the canonical name. | |
| # This may change if we are able to find a more well defined naming system. | |
| - error: RPD_OSPF_NBRDOWN | |
| tag: RPD_OSPF_NBRDOWN | |
| values: | |
| neighbor: (\d+\.\d+\.\d+\.\d+) | |
| interface: ([\w\-\/\.\d]+) |