Jump to content

Search the Community

Showing results for tags 'Python'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • ANNOUNCEMENTS
    • ANNOUNCEMENTS
  • CERTIFICATION - - - - - NO REQUESTS IN THESE FORUMS - - - - -
    • CISCO SYSTEMS
    • COMPTIA
    • LINUX
    • MICROSOFT
    • ORACLE
    • PROJECT MANAGEMENT
    • SECURITY CERTIFICATIONS
    • SUN MICROSYSTEMS
    • WIRELESS
    • OTHER CERTIFICATIONS
  • CISCO TECHNICAL SECTION
    • CISCO LABS
    • GNS3
    • NETWORK INFRASTRUCTURE
    • SECURITY
    • WIRELESS
    • SERVICE PROVIDERS
    • COLLABORATION, VOICE AND VIDEO
    • DATA CENTER
    • SMALL BUSINESS
  • MICROSOFT TECHNICAL SECTION
  • OTHER TECHNICAL SECTION
  • TRAINING OFFERS & REQUESTS
  • CERTCOLLECTION MALL
  • GENERAL FORUMS
  • COMMUNITY CENTER

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 9 results

  1. INE - Network Security Automation (2020) Network Security Automation This course focuses on the implementation of Security automated solutions. APIs of certain security appliances are also discussed, including their capabilities, characteristics, and components. Course:- Course Introduction Firepower APIs ISE & pxGrid APIs Umbrella APIs Content Security APIs Threat Grid APIs FMC API - Introduction FMC API - Automating Authentication FMC API - Manipulating Objects FMC API - Manipulating Policies Umbrella Enforcement API Umbrella Investigate API Course Conclusion [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]] [hide][Hidden Content]]
  2. INE - Practical Python Cisco Network Automation (2020) [hide][Hidden Content]]
  3. Udemy: Python Network Programming for Network Engineers (Python 3) 17 hours left Created by David Bombal "English Subtitles" 13 Hours (Instead of $9.99) [Hidden Content] Use this code to get it FREE : DBPYTHONMAY #Udemy #Python #Networking #DavidBombal #Cybecourses
  4. Python programming fundamentals [Hidden Content] Please, hide your links next time. Usage: [ hide ] All your Download links [ /hide ] (without spaces)
  5. opnine

    script question

    Part of the strategy to migrate to the new physical domain on ACI requires that new VLAN ranges be used, so that overlap with production VLANs is avoided. Currently VLAN ranges defined in the newStudentTenants.json data file include 1-1000 for all student EPGs. Your task is to modify the VLAN range used from 1-1000 to 1501- 2500. Example: VLAN 1 should be changed to VLAN 1501 VLAN 2 should be changed to VLAN 1502 VLAN 201 should be changed to VLAN 1701 etc. Note: Do not change existing VLAN ranges for any other VLAN pools, only the student VLAN pool created by the script should be changed. # create NewStudent-* tenantsfrom cobra.mit.access import MoDirectoryfrom cobra.mit.session import LoginSessionfrom cobra.mit.request import ConfigRequestfrom cobra.model.fvns import VlanInstP, EncapBlkfrom cobra.model.infra import RsVlanNs, RsDomP, AttEntityPfrom cobra.model.fv import Tenant, Ctx, BD, RsCtx, Ap, AEPg, RsBd, RsDomAtt, RsPathAttfrom cobra.model.vmm import DomP, UsrAccP, CtrlrP, RsAccfrom cobra.model.phys import DomPimport jsonimport requestsfrom requests.packages.urllib3.exceptions import InsecureRequestWarningrequests.packages.urllib3.disable_warnings(InsecureRequestWarning)data = []with open('StudentTenants.json') as f: for line in f: data.append(json.loads(line))physDomainObj = data[0]print "Physical Domains"print data[0]print "\nTenants:\n"print data[1:]tenants = data[1:]physDomainInst = data[0]['physDomainInst']print physDomainInstprint physDomainInst['name']print tenantsuser = 'admin'password = 'F4l4b3ll42017'apicUrl = '[Hidden Content]' moDir = MoDirectory(LoginSession(apicUrl, user, password))moDir.login()# Get the top level Policy Universe DirectoryuniMo = moDir.lookupByDn('uni')uniInfraMo = moDir.lookupByDn('uni/infra')# Domain for All Student Tenants# from json file and use it to create our Physical Domain# physDomainInst['name'] => Physical Domain name# physDomainObj['physDomainInst']physDomPMo = DomP(uniMo, physDomainInst['name'])domcfg = ConfigRequest()domcfg.addMo(physDomPMo)moDir.commit(domcfg)# VLAN Pool for All Student Tenants# VLAN Pool name to be exact same as Physical DomainvlanPhysDomPMo = VlanInstP(uniInfraMo, physDomainInst['name'], 'static')EncapBlk(vlanPhysDomPMo, "vlan-3000", "vlan-3000", name="PhysVlanPoolCCIE")physCfg = ConfigRequest()physCfg.addMo(vlanPhysDomPMo)moDir.commit(physCfg)#relationship to Physical DomainRsVlanNs(physDomPMo, tDn=vlanPhysDomPMo.dn)domCfg = ConfigRequest()domCfg.addMo(physDomPMo)moDir.commit(domCfg)# Physical Domain Relationship to Attached Entity ProfileAttEntityPmo = AttEntityP(uniInfraMo, "ATTENTITYP")infra_rsdomp = RsDomP(AttEntityPmo, physDomPMo.dn)attCfg = ConfigRequest()attCfg.addMo(AttEntityPmo)moDir.commit(attCfg)# #Creation of Tenants and VLAN Rangesprint "Printing full tenant JSON, for debug"for tenant in tenants: print "Tenant name: " + tenant['name'] print "BD name: " + tenant['bd'] print "PVN name: " + tenant['ctx'] vlanRangeArgs = tenant['vlanRangeArgs'] print "VLAN Range name: " + vlanRangeArgs['name'] + ", from: " + vlanRangeArgs['from'] + ", to: " + vlanRangeArgs['to'] app = tenant['aps'] print "App Name: " + app['name'] for epg in app['epgs']: print epg['name']print "\nStarting tenant configuration...\n"for tenant in tenants: # VLAN range for Student ---> vlanRange['name']) print "==================== Creating Tenant: " + tenant['name'] + " ====================" vlanRangeArgs = tenant['vlanRangeArgs'] print "Creating VLAN range: " + vlanRangeArgs['name'] fvnsVlanInstPMo = VlanInstP(uniInfraMo, vlanRangeArgs['name'], 'dynamic') EncapBlk(fvnsVlanInstPMo, vlanRangeArgs['from'], vlanRangeArgs['to'], name=vlanRangeArgs['name']) # commit VLAN Range to APIC nsCfg = ConfigRequest() nsCfg.addMo(fvnsVlanInstPMo) moDir.commit(nsCfg) fvTenantMo = Tenant(uniMo, tenant['name']) # Create Private Network under Tenant print "Creating Private Network: " + tenant['ctx'] Ctx(fvTenantMo, tenant['ctx']) # Create Bridge Domain under Tenant print "Creating Bridge Domain: " + tenant['bd'] fvBDMo = BD(fvTenantMo, name=tenant['bd']) # Create association to private network under Tenant print "Creating VRF to BD association" fvRsCtx = RsCtx(fvBDMo, tnFvCtxName=tenant['ctx']) app = tenant['aps'] # creating Application Profile ---> app['name'] print "Creating Application profile: " + app['name'] fvApMo = Ap(fvTenantMo, app['name']) # for all EPGS from JSON and create each EPG under Application print "Creating EPGs: " for epg in app['epgs']: print "EPG: " + epg['name'] fvAEPgMo = AEPg(fvApMo, epg['name']) # Associate EPG to Bridge Domain RsBd(fvAEPgMo, tnFvBDName=tenant['bd']) # Associate EPG to Phys Domain RsDomAtt(fvAEPgMo, physDomPMo.dn) encap = epg['encap'] print "Associating EPG to VLAN: " + str(encap) RsPathAtt(fvAEPgMo, tDn="topology/pod-1/", encap=('vlan-' + str(encap))) RsPathAtt(fvAEPgMo, tDn="topology/pod-1/paths-102", encap=('vlan')) RsPathAtt(fvAEPgMo, tDn="topology/pod-1/paths-103", encap=('vlan')) # Commit changes to the Configuration tenantCfg = ConfigRequest() tenantCfg.addMo(fvTenantMo) moDir.commit(tenantCfg) print "\n" # Associate EPG to Static Path to node-103 and node-102 # ch encap VLAN numbers from epg dictionary key encap, like this epg['encap] # mat EPG VLAN encap number by concatenating string "vlan-" and value of ep # ['encap'] => VLAN encap # fvRsPathAtt(fvAEPgMo, tDn=epg['path'], encap=('vlan-' + str(epg))) # fvRsPathAtt(fvAEPgMo, tDn=epg['path'].replace('paths-103','paths-102'), encap=('vlan'))
  6. 2 days class Contents: Day 1 Part 1. Introduction and Strings Day 1 Part 2. Lists, Sorting, and Tuples Day 1 Part 3. Dicts and Files Day 2 Part 1. Regular Expressions Day 2 Part 2. Utilities. OS and Commands Day 2 Part 3. URLs and HTTP, Exceptions Day 2 Part 4. Closing Thoughts [hide][Hidden Content]]
  7. INE Practical Python Cisco Automation [Hidden Content] Please, hide your links next time. Usage: [ hide ] All your Download links [ /hide ] (without spaces)
  8. Hi Guys, As promise on my GB thread. Below are the Python videos grab em now while it is available, if anyone can create torrent for these much better since I don't know how long they'll be able to detect the videos before deleting it. [hide][Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content] [Hidden Content]]
×
×
  • Create New...