Skip to content

Instantly share code, notes, and snippets.

@nuthanc
nuthanc / script.txt
Last active August 31, 2021 11:15
Not working, but still useful vs code pytest settings
Some useful links:
https://code.visualstudio.com/docs/python/testing
https://code.visualstudio.com/docs/python/testing#_test-discovery
https://code.visualstudio.com/docs/python/testing#_test-configuration-settings
@nuthanc
nuthanc / bookmarks.json
Created August 18, 2021 06:37
Atom mono repo's bookmarks
{
"files": [
{
"path": "Tests/Examples/Utils/TrafficGenerator/test_trafficgen_hping3.py",
"bookmarks": [
{
"line": 35,
"column": 89,
"label": ""
}
@nuthanc
nuthanc / error.txt
Created August 11, 2021 05:28
Kubemanager master error
08/11/2021 10:57:00.474 7f11f5c532d0 [contrail-kube-manager] [INFO]: SANDESH: CONNECT TO COLLECTOR: True
08/11/2021 10:57:00.569 7f11f5c532d0 [contrail-kube-manager] [INFO]: SANDESH: Logging: LEVEL: [SYS_INFO] -> [SYS_DEBUG]
08/11/2021 10:57:00.570 7f11f5c532d0 [contrail-kube-manager] [INFO]: SANDESH: Logging: FILE: [None] -> [/var/log/contrail/kubernetes-kube-manager/contrail-kube-manager.log]
NamespaceMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/api/v1
NetworkMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/apis/k8s.cni.cncf.io/v1
PodMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/api/v1
ServiceMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/api/v1
NetworkPolicyMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/apis/networking.k8s.io/v1
EndPointMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/api/v1
IngressMonitor - KubeMonitor init done: url=https://77.77.1.20:6443/apis/extensions/v1beta1
@nuthanc
nuthanc / command_servers.yaml
Created August 4, 2021 09:55
command_servers
command_servers:
server1:
ip:
connection: ssh
ssh_user: root
ssh_pass: c0ntrail123
sudo_pass: c0ntrail123
ntpserver: 10.204.217.158
registry_insecure: true
container_registry: bng-artifactory.juniper.net/contrail-nightly
@nuthanc
nuthanc / contrail-status.yml
Created July 16, 2021 07:04
Checking contrail-status play with active
---
- hosts: local
tasks:
- name: check initializing status in contrail components
command: contrail-status
register: output
until: '"active" not in output.stdout_lines | join'
retries: 10
delay: 2
podSelector: (1)
matchLabels: (2)
app: webserver-dev (3)
policyTypes: (4)
- Ingress (5)
- Egress (6)
ingress: (7)
- from: (8)
- ipBlock: (9)
cidr: 10.169.25.20/32 (10)
@nuthanc
nuthanc / 2011_138.txt
Last active June 24, 2021 12:27
Joint ingress issue
__public__ created in default-domain -> k8s-default
209.220.208.0/26
Only Reverse Path Forwarding checked
__fip_pool_public__ in default-domain -> All projects
Floating IP in default-domain -> k8s-default
Floating IP:-209.220.208.60 Mapped Fixed IP Address:-10.47.255.246 (default-domain__k8s-default__173caa96-b312-44c6-a3ba-50d0ad771f4a__2__right__1)
10.47.255.246 (k8s__Ingress__ctest-nginx-ingress-39602541__173caa96-b312-44c6-a3ba-50d0ad771f4a)
@nuthanc
nuthanc / spirent.md
Last active June 29, 2021 08:02
kaushal spirent explanation

2 ports- 1/4 and 1/5 connected to Switch

static route

interface: vlan

Remove l3 interface on switch Configure device on 1/5, 10.10.1.1 Packet capture on 1/5

@nuthanc
nuthanc / README.md
Last active June 10, 2021 10:30
Flow scale logs of 2011.L2.300

Flow scale logs of 2011.L2.300

@nuthanc
nuthanc / error.txt
Created June 9, 2021 07:01
Spirent error
Spirent Invoke Parameters: {'l2_encap': 'ethernet_ii', 'mac_src': '00:11:AD:11:AB:01', 'l3_protocol': 'ipv4', 'ip_src_mode': 'random', 'ip_src_count': 100000, 'frame_size': '512', 'length_mode': 'fixed', 'rate_pps': '1000', 'mode': 'create', 'transmit_mode': 'multi_burst', 'burst_loop_count': 1000, 'l4_protocol': 'udp', 'ip_dst_mode': 'random', 'pkts_per_burst': 1000, 'port_handle': 'port1', 'name': 'udp_flow'}
<error>: Apply failed. RuntimeError in apply: There were 2 validation error(s); aborting apply.
The current stream block configuration for port (10.204.216.89-1-4 //1/4 [CC:E1:94:49:FF:64/650]) will expand to 100000 transmit streams, which is greater than the maximum port capacity of 65535 transmit streams.