Giter Club home page Giter Club logo

shipped-apicem-bp's Introduction

Shipped APIC-EM and NextUI buildpack

Shipped is a hybrid devops framework that enables developer to easily build, deploy and run containerized microservices.

This repository include sample code and Shipped buildpack bootstrap data to enable developer to build and deploy application using Cisco APIC-EM APIs and NextUI visualization library.

Buildpack

Buildpack github repository in Shipped is a pre-packged framework. This buildpack include following

  • Sample application implementing some APIC-EM APIs.
  • Sample web frontend implementing NextUI topology feature.
  • Basic build, test and runtime scripts to build, test and run application.
  • This repository in combination with APIC-EM buildpack defined in Shipped provide complete build and runtime environment details.

APIC-EM

The Application Policy Infrastructure Controller (APIC) Enterprise Module (API) is a Software Defined Network (SDN) controller from Cisco. APIC-EM buildpack enable developer to build application using northbound APIs.

APIC-EM Application

More details on APIC-EM development https://developer.cisco.com/site/apic-em/

NextUI

NeXt UI toolkit is an HTML5/JavaScript based toolkit for network web application. Provide high performance and high quality framework and network centric topology component. Sample topology that this sample implements. NextUI topology

More details on NextUI toolkit : https://developer.cisco.com/site/NeXt-test/

##Sample Application & Code details

Sample Application accesses two cisco product APIs, one is APIC-EM and the other is NeXtUI to display the respective topologies. It is developed in simple HTML,CSS and JQuery which can be easily customized.

###Code Structure

The Sample application consists of following folder structure.

  • /bin -> Makes the Application executable
  • /server -> Node.js Server to host the application
  • /ui -> Consists of Core Sample Application.

We are consuming APIs from APIC-EM https://sandboxapic.cisco.com, this is the sandbox url for APIC-EM APIs. As it is sandbox so anyone can access it, please login there with temporary user id and password mentioned on the same page.

You can extend our application by calling these sandbox APIs, like we did for Host API, Inventory API, Policy API etc. Please follow the illustration below in order to understand the process of API consumption

  • Navigate to the link for Host API call: https://github.com/CiscoCloud/shipped-apicem-bp/blob/master/ui/js/inventory/host.js and see how we consume the host API
  • We have created Parent functions to set host API data in UI dataTable,please follow the mentioned path ui>js>util> ajaxUtils.js & tableUtils.js to bind and consume host API
  • Pick minimal set of columns as done for sample API to show in GUI .
  • Follow sample code to add links in html page.

We have few more API for topology.

We had used this API to show the routing path between two host within a network. We just need to replace the source and destination ip's and bypass this json data into topology call to get mapping, please follow the sample code.

  • To generate Topology we are using NeXt UI framework of cisco as you find the details in ui>js>util> topologyUtils.js file.

###Note

  • Topology will be available for Host.
  • To get Topology between two host IP, We need two choose source and destination IP address.
  • To view full topology we need to go to Topology tab and click on "Show Full Topology" button.
  • To get detail view of any API call, We need to check the last coloum which is view more detail option in each data table, to get complete view of that minimal list data.

shipped-apicem-bp's People

Contributors

vjscjp avatar npateriya avatar mcelligott avatar tooda02 avatar mikejihbe avatar mayank30 avatar ikinsey avatar

Watchers

John Weldon avatar  avatar Tom Deckers avatar J P avatar  avatar Felix avatar James Cloos avatar Jeff Lerman avatar Cortney Robinson avatar Danny Krainas avatar Tenji Tembo avatar  avatar Ken Owens avatar Edwizhan avatar Gordon Fierce avatar drone-173.39.240.56 avatar  avatar Anita Michel avatar Raj Kumar avatar Dexter LaBora avatar  avatar Chi Nguyen avatar  avatar  avatar  avatar

Forkers

weerachaiy

shipped-apicem-bp's Issues

APIC-EM buildpack

Add APIC-EM buildpack in shipped-api
Ensure:

  • Local build
  • Drone build
  • Marathon deploy works as expected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.