contiv / ofnet

Ofnet is openflow networking library
Other
79 stars 73 forks source link

proposal: add ovs patch port type option. #91

Closed bretagne-peiqi closed 7 years ago

bretagne-peiqi commented 7 years ago

currently, ofnet only uses Veth_Pair to link containers to bridge, Is_use_veth_pair is set true by default and there is no other option in fact. We think ovs patch has a better performance over linux veth pair type and want to add it as an option. Besides, when delete the veth pair, we should also delete the corresponding ovs interface, ovs-vsctl del-port XXX vvport17...

    Port "vvport17"
        tag: 101
        Interface "vvport17"
            error: "could not open network device vvport17 (No such device)"
    Port "eth2"
        Interface "eth2"
    Port "vvport21"
        tag: 101
        Interface "vvport21"
            error: "could not open network device vvport21 (No such device)"
    Port "vvport14"
        tag: 101
        Interface "vvport14"
            error: "could not open network device vvport14 (No such device)"
    Port "vvport15"
        tag: 101
        Interface "vvport15"
            error: "could not open network device vvport15 (No such device)"
    Port "vvport38"
        tag: 101
        Interface "vvport38"