Examples of OFMatchWithSwDpid


Examples of org.openflow.protocol.OFMatchWithSwDpid

                // Generate an OFMatch objects for the OFMatchWithSwDpid object
                OFMatch match = new OFMatch().setWildcards(OFMatch.OFPFW_ALL);

                // Generate the OFMatchWithSwDpid
                OFMatchWithSwDpid ofmatchsw = new OFMatchWithSwDpid(match,
                                                                    affectedSwitch);

                // Set the action to update the path to remove flows routing
                // towards the downed port
                ofmr.rcAction = OFMatchReconcile.ReconcileAction.UPDATE_PATH;
View Full Code Here

Examples of org.openflow.protocol.OFMatchWithSwDpid

    /**
     * Instantiates a new oF match reconcile object.
     */
    public OFMatchReconcile() {
        ofmWithSwDpid      = new OFMatchWithSwDpid();
        rcAction = ReconcileAction.NO_CHANGE;
        cntx = new FloodlightContext();
    }
View Full Code Here

Examples of org.openflow.protocol.OFMatchWithSwDpid

        cntx = new FloodlightContext();
    }
   
    public OFMatchReconcile(OFMatchReconcile copy) {
        ofmWithSwDpid =
            new OFMatchWithSwDpid(copy.ofmWithSwDpid.getOfMatch(),
                    copy.ofmWithSwDpid.getSwitchDataPathId());
        priority = copy.priority;
        action = copy.action;
        cookie = copy.cookie;
        appInstName = copy.appInstName;
View Full Code Here

Examples of org.openflow.protocol.OFMatchWithSwDpid

        lofmr = new ArrayList<OFMatchReconcile>();

        // Create the only OFMatch Reconcile object that will be in the list
        ofmr = new OFMatchReconcile();
        long affectedSwitch = sw1.getId();
        OFMatchWithSwDpid ofmatchsw = new OFMatchWithSwDpid(new OFMatch().setWildcards(OFMatch.OFPFW_ALL),
                                                            affectedSwitch);
        ofmr.rcAction = OFMatchReconcile.ReconcileAction.UPDATE_PATH;
        ofmr.ofmWithSwDpid = ofmatchsw;

        // We'll say port 3 went down
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.