DEVNET-1114 Automated Management Using SDN/NFVCisco DevNet
油
How is the open source community using SDN/NFV to create truly heterogeneous, inter-operable, multi-tenant cloud data centers? Well present results from our independent testing of cloud orchestration, middleware, SaaS, and Iaas multi-vendor solutions, including SDNs inroads to the telecommunication world and how networking influences emerging trends like Docker virtual containers in the cloud.
DEVNET-2002 Coding 201: Coding Skills 201: Going Further with REST and Python...Cisco DevNet
油
Are you ready to dive deeper into using Python and REST? This class continues the Coding Skills 101 topics and goes deeper into techniques for parsing JSON, and debugging.
DEVNET-1114 Automated Management Using SDN/NFVCisco DevNet
油
How is the open source community using SDN/NFV to create truly heterogeneous, inter-operable, multi-tenant cloud data centers? Well present results from our independent testing of cloud orchestration, middleware, SaaS, and Iaas multi-vendor solutions, including SDNs inroads to the telecommunication world and how networking influences emerging trends like Docker virtual containers in the cloud.
DEVNET-2002 Coding 201: Coding Skills 201: Going Further with REST and Python...Cisco DevNet
油
Are you ready to dive deeper into using Python and REST? This class continues the Coding Skills 101 topics and goes deeper into techniques for parsing JSON, and debugging.
The document discusses microprocessors and provides details about:
- What a microprocessor is, including that it contains the CPU and control functions on a single chip
- Types of memory like ROM and RAM
- Components of the central processing unit (CPU)
- Features of Intel processors like Turbo Boost and integrated graphics
- Different types of desktop and laptop processors from Intel including Core i3, i5, i7, and Core i7 Extreme
- Factors to consider when choosing a processor like intended use, performance needs, and number of simultaneous programs
This document introduces Python for network engineers, covering an overview of Python, what tasks it can perform like network automation, how to run Python interactively and with files, differences between Python and shell scripting, Python data types, modules, and includes an example Python program to login to a switch and retrieve interface configuration using Telnet.
Understanding REST APIs in 5 Simple StepsTessa Mero
油
This document summarizes the 5 steps to understanding REST APIs: 1) Understanding the purpose of APIs and their importance and growth, 2) Learning that REST defines functions to communicate via HTTP verbs and nouns, 3) Knowing that APIs use requests and responses, 4) Relying on documentation as the reference, and 5) Using debugging and testing tools to prevent issues. It provides examples of requests, responses, API documentation, and tools like Postman for working with REST APIs.
Simulation training in medicine and technology managementMCH-org-ua
油
Presentation by the Ukrainian-Swiss Mother and Child Health Programme at 2nd Regional Health Technology Management Worskhop (April 10-11, 2014, Chisinau, Moldova)
Coding 102 REST API Basics Using SparkCisco DevNet
油
This document provides an overview and agenda for a workshop on REST API basics using the Cisco Spark API. The agenda includes an introduction to REST APIs and what makes them useful, a tour of the Cisco Spark API and its endpoints, and hands-on exercises for interacting with the Cisco Spark API using Postman and JavaScript examples. Attendees will learn how to retrieve room and membership data, add messages to rooms, and call API functions from JavaScript code. The workshop aims to help developers get started using the Cisco Spark API and provides resources for continuing their education on API design and development.
The document discusses the Cisco Cloud Services Router 1000V (CSR 1000V). Key points:
- The CSR 1000V is a virtual router that runs the same IOS-XE operating system as physical Cisco routers. It provides routing and firewall capabilities in a virtual machine.
- It supports zone-based firewalling with unlimited interfaces, compared to the limited capabilities of IOS firewalling. Maximum throughput is 1Gbps.
- The document provides configuration examples for deploying and configuring the CSR 1000V on VMware ESXi, including enabling the RESTful API and zone-based firewall.
- onePK and RESTful APIs allow programmatic access and automation of the router for tasks like
Cisco Application Infrastructure Controller (APIC) enables Application Centric Infrastructure (ACI). APIC provides network abstraction and automation for WAN and access domains as part of the Cisco ONE platform, broadening its capabilities beyond the data center. The Cisco ONE Enterprise Networks Architecture uses APIC as its control layer to simplify configuration and provisioning of networks for the application economy through programmability and automation of network configuration.
The APIC Enterprise Module provides a single point of control to simplify the operation of your enterprise network. The heart of the controller is a rich policy engine that translates higher order business intent into network configuration. The controller exposes a rich REST based API to allow other applications to take advantage capabilities of the controller and unlock the power of the underlying network infrastructure. This session will present the basic constructs of the controller such as the policy engine, and the capabilities of the REST API. There will be examples of how these capabilities can be integrated into other applications to simplify operations, improve security and enhance user experience.
BFD is a protocol that can quickly detect failures in the forwarding path between two adjacent routers, including interfaces, data links, and forwarding planes. It operates in two modes: asynchronous mode where it periodically sends control packets, and demand mode where it only sends packets when needed. When a failure is detected, BFD triggers routing protocol actions to recalculate the routing table and reduce convergence time. It provides fast failure detection independently of media, encapsulation, topology, or routing protocol. Configuring BFD involves setting intervals at the interface level and enabling it for routing protocols.
The document discusses Nmap, a free and open source tool for network discovery and security auditing. It describes Nmap's scanning techniques like SYN scans, ping scans, UDP scans, and version detection. It also covers options for detecting the operating system, specifying hosts and ports to include or exclude from scans, getting real-time information through verbose mode and packet tracing, and logging scan results in different formats.
The document provides instructions on how to solve exercises involving relative pronouns such as who, which, that in Vietnamese. It discusses connecting two sentences using a relative pronoun, filling blanks in sentences with relative pronouns, and guidelines for using relative pronouns including use of commas, omitting pronouns, and situations that require or prohibit certain pronouns. Examples are provided to demonstrate these rules. The document also contains exercises for students to practice using relative pronouns in sentences.
Policy-Based Routing (PBR) allows network administrators to override the default routing behavior and specify how traffic should be routed based on matching criteria. PBR uses route-maps to match packets and set the next-hop. Route-maps contain match and set clauses - match clauses define the conditions to match packets, and set clauses define the action to take for matched packets such as specifying the next-hop router. Network administrators configure PBR by defining route-maps with match and set statements, applying the route-map to an interface with the ip policy command.
7. Data Type
String str = message
Integer number = 20
Floating Point pi = 3.14159
Boolean isParse = True, False
None None
List list = [1, 2, 3]
Dictionary me = {name: Bas, No: 1}
Class instance a = MyClass()
8. Operator
Basic Operator
+, -, *, /, %, **, &, | warning!
- int/int == int
- int**(-int) == 鍖oat
Comparison Operator
- int/鍖oat == 鍖oat
>, >=, <, <=, ==, !=, is - string + string == concat string
- string * int == multiple string
- list + list = list
shortly
i = i + 1 == i += 1
9. Logical Operator
犢犖 Python 犢犖犖迦犖萎犖犢 & 犢犖ム鍵 | (Pipe) 犢犖犖劇犖犖犢犖 and, or Operation
犢犖犢犢犖 Python 犖犢犖÷元 Operator 犖犖巌犖犖犢犖ム鍵犖犖巌権犖÷犖犢犖犖園犖犖園犖犖犖劇賢
and , or
shortly logical operation
x &= (a == b)
==
x = x and (a == b)
10. Control Statement (if)
If
condition statement
犢犖犖劇犖犖犢犖犖犖犖 if 犢犖÷犖犢犖犖犢犖犢犖о犢犖ム犖 犢犖о犖犢犖犢犖о犖迦犖犖劇犖犖犢犖犖犖萎検犖朽見犖ム顕犖∇犖犖犖犖園
number = int(input(Enter Number: )) number = int(input(Enter Number: ))
if number > 0: if number % 2 == 0 or number % 4 == 0
print Number is Positive or number % 5 == 0:
elif number < 0: print Number divided by 2, 4, 5
print Number is Negative
else:
print Number is Zero
11. Control Statement (for)
For (foreach)
loop statement
list = [7, 8, 9, 10]
for x in xrange(10): for index, value in enumerate(list):
print x print index, value
for x in xrange(3, 20):
print x
x=0 Endless Loop
name = [a, b, c] while (x <= 10): while True:
for x in name print x if condition:
print x x += 1 break;
12. Play with List, Dictionary
string method and slice
list and list method demo
dictionary demo
mixed type list, dictionary
13. Function
Function Syntax:
def function_name(set of parameter):
statement ..
statement ..
def 鍖bonacci(n):
鍖bo = 0;
for k in xrange(0, int(math.鍖oor((n - 1) / 2)) + 1):
鍖bo += math.factorial(n - k - 1) /
(math.factorial(k) * math.factorial(n - k - 1 - k))
return 鍖bo
Muti-Return Data
14. Python OOP
- Class = 犢犖÷犖犖巌検犖犢犖犖犖
- Object, Instance = 犖犖犖
- Python Class 犖犢犢犖犢犖犢犖犖朽権犖о犖園
- Python Class 犖犖 subclass 犖犖迦 Class object 犢犖犖÷賢
Demo:
- create class
- constructor and destructor
- create class instance
- using class
15. Read and Write File
open(鍖lename, mode)
r = read # 犢犖犖巌犢犖犖ム犢犖犖劇犖犖犢犖迦
w = write # 犢犖犖巌犢犖犖ム犢犖犖劇犖犢犖犖朽権犖犖犖園
a = append # 犢犖犖巌犢犖犖ム犢犖犖劇犖犢犖犖朽権犖犖犢犖
鍖le = open(鍖lename.txt, r)
鍖le.read() # 犖犢犖迦犢犖犖ム犖犖園犖犖犖÷犢犖犢犖 String
鍖le.readline() # 犖犢犖迦犢犖犖ム犖犖朽献犖萎犖犖犖犖園
鍖le.readlines() # 犖犢犖迦犢犖犖ム犖犖伍犖犖犖犖犖園犖犖犖犖÷顕犢犖犢犖 List of String
鍖le.write(string) # 犢犖犖朽権犖 String 犖犖園犖犖犖÷犖ム犢犖犖ム
鍖le.writelines([list of string]) # 犢犖犖朽権犖 List of String 犖ム犢犖犖ム
19. Its Application
Digital Image Processing (Python Imaging Library)
Computer Vision (OpenCV)
Web Framework (Django)
Web Server (Gunicorn, Tornado)
Web Client (Beautiful Soup, urllib3, html5lib)
Content Management System (Plone)
Natural Language Processing (NLTK)