Hi.
By looking the mail archive, I got this solution:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

collector_ip=127.0.0.1:6343
agent_ip=eth1
header_bytes=128
sampling_n=256
polling_sec=10
sFlowUUID=`sudo ovs-vsctl -- --id=@sflow  \
            create sflow                \
            agent=${agent_ip}           \
            target=\"${collector_ip}\"      \
            header=${header_bytes}      \
            sampling=${sampling_n}      \
            polling=${polling_sec}`

for br in `sudo ovs-vsctl list br | awk -- '/^name/ {print $3;} '`; do
    br=`echo $br | tr -d "\""`
    sudo ovs-vsctl -- -- set bridge $br sflow=$sFlowUUID;
done

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
However, when execute it, I get this error:

Jan 23 16:20:05|00002|vsctl|WARN|row id "@sflow" was created but no
reference to it was inserted, so it will not actually appear in the database
ovs-vsctl: transaction error: {"details":"Table Bridge column sflow row
88ea9b5c-f52e-473c-9fbe-1c303fc53bc0 references nonexistent row
1ae3dfe6-e7e8-4708-9366-c67d3c526bd3 in table sFlow.","error":"referential
integrity violation"}
ovs-vsctl: transaction error: {"details":"Table Bridge column sflow row
4183a7b9-15c9-472b-9152-fadbf4b793b2 references nonexistent row
1ae3dfe6-e7e8-4708-9366-c67d3c526bd3 in table sFlow.","error":"referential
integrity violation"}
ovs-vsctl: transaction error: {"details":"Table Bridge column sflow row
ac7abdc3-1926-47eb-9dea-0ba081228785 references nonexistent row
1ae3dfe6-e7e8-4708-9366-c67d3c526bd3 in table sFlow.","error":"referential
integrity violation"}


My aim is to let multiple bridges(switches) connect to the sflow analyzer.

(Also, is the content of the database permanent? Or it's just a runtime
setting?)


Thanks.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to