GithubHelp home page GithubHelp logo

apron_language's Introduction

/*
File name: Readme
*/

The project is used as an independent permission language executor.

To execute a permission checking, you need:
	1. create the evaluator with permission descriptions.
	2. create a Access Control Request, and assign this to evaluator.
	3. run the evaluator.

Sample code as followed:
	eval = CreateEvaluator();
	eval.permReq = req;
	return eval.execute();
	
To make the evaluator run correctly, you need to write extra code within your controller:
	1. Methods to transfer API call and its parameters to unified ACL request.
	2. A wrapper TopologyManager to implement the interface of ITopologyManager.
	
1) ACL request.
ACL need to check following permissions. So any request's related value should be set.

    |flow_predicate                         #flow_predicate_
    |topo                                   #topo_
    |ACTION action                          #action_
    |ownership                              #ownership_
    |max_priority                           #max_priority_
    |ownership                              #flow_table_
    |notification                           #notification_
    |statistics                             #statistics_

(1) For example, if APP is trying to use flow_mod to add a new flow. 
	Set the "type" as OFType.FLOW_MOD. (optional)
	"switchID" should be set. (required)
	the "match" part should be set, including ip, port, input e.g. 
	set the action list "actions". "actions" consists of a list of "OFAction". set them according to detailed flow mod.
	set the priority of the flow.


Example(2), if APP is trying to send PACKET_OUT.
	Set the "type" as OFType.FLOW_MOD. (required)
	"switchID" should be set. (required)
	the "match" part should be set, including ip, port, input e.g. (required)
	
Example(3), if APP is trying to access to the response(event) from switch.
	Set the notification level the APP wanted(just INTERCEPTION or want to modify the event: maybe modify the event, drop the event, prevent the event processed by others).
	
Example(4), if APP want to access statistics.
	Set the statistics level according the parameters.
	if app want to get the statistics of the switch, then set switch_level.
	if app want to get the statistics of switch port, then set port_level.
	if app want to get the statistics of flows, then flow_level.
	

apron_language's People

Contributors

jasonyang-msft avatar

Watchers

 avatar  avatar  avatar

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.