[ovs-discuss] Hosts can ping each other after removing flows....

Gurucharan Shetty shettyg at nicira.com
Mon Aug 11 15:10:41 UTC 2014


On Sun, Aug 10, 2014 at 7:34 AM, Prasanna Yabaluri
<prasanna at yabaluri.com> wrote:
> Help needed for troubleshooting.
>
> I have vSwitch in fail_mode secure. Using floodlight controller.The two
> hosts can ping each other even after flows have been deleted ...
>
> 1. curl -X Delete flow name
>
> 2. sudo ovs-dpctl del-flows
You are deleting the flows from the kernel module (which is a cache
and will be re-populated by ovs-vswitchd). You should use
'ovs-ofctl del-flows mybridge2-rb'

>
> user1 at devtest11:~$ sudo ovs-vsctl show
> 14593c41-8295-43a7-b63f-74eb932e52c5
>     Bridge "mybridge2-rb"
>         Controller "tcp:10.47.52.72:6633"
>             is_connected: true
>         fail_mode: secure
>         Port "eth2"
>             Interface "eth2"
>         Port "eth3"
>             Interface "eth3"
>         Port "mybridge2-rb"
>             Interface "mybridge2-rb"
>                 type: internal
>     ovs_version: "2.0.1"
>
> user1 at devtest11:~$ sudo curl
> http://10.47.52.72:8080/wm/core/switch/00:00:c0:4a:00:04:94:04/flow/json |
> json_pp -t dumper
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
> 100  1369    0  1369    0     0  60146      0 --:--:-- --:--:-- --:--:--
> 62227
> $VAR1 = {
>           '00:00:c0:4a:00:04:94:04' => [
>                                          {
>                                            'priority' => 0,
>                                            'durationSeconds' => 632,
>                                            'durationNanoseconds' =>
> 843000000,
>                                            'hardTimeout' => 0,
>                                            'byteCount' => 48548,
>                                            'actions' => [
>                                                           {
>                                                             'lengthU' => 8,
>                                                             'maxLength' =>
> -1,
>                                                             'length' => 8,
>                                                             'port' => 2,
>                                                             'type' =>
> 'OUTPUT'
>                                                           }
>                                                         ],
>                                            'packetCount' => 664,
>                                            'idleTimeout' => 5,
>                                            'tableId' => 0,
>                                            'match' => {
>
> 'transportDestination' => 0,
>
> 'dataLayerVirtualLanPriorityCodePoint' => 0,
>
> 'networkTypeOfService' => 0,
>                                                         'dataLayerType' =>
> '0x0000',
>                                                         'inputPort' => 1,
>
> 'dataLayerVirtualLan' => -1,
>
> 'dataLayerDestination' => '84:34:97:18:78:e4',
>                                                         'transportSource' =>
> 0,
>                                                         'networkDestination'
> => '0.0.0.0',
>                                                         'dataLayerSource' =>
> 'd4:be:d9:52:15:b0',
>                                                         'wildcards' =>
> 3678448,
>
> 'networkSourceMaskLen' => 0,
>                                                         'networkSource' =>
> '0.0.0.0',
>
> 'networkDestinationMaskLen' => 0,
>                                                         'networkProtocol' =>
> 0
>                                                       },
>                                            'cookie' => '9007199254740992'
>                                          },
>                                          {
>                                            'cookie' => '9007199254740992',
>                                            'match' => {
>                                                         'dataLayerSource' =>
> '84:34:97:18:78:e4',
>                                                         'networkDestination'
> => '0.0.0.0',
>                                                         'transportSource' =>
> 0,
>
> 'dataLayerDestination' => 'd4:be:d9:52:15:b0',
>                                                         'networkProtocol' =>
> 0,
>
> 'networkDestinationMaskLen' => 0,
>                                                         'networkSource' =>
> '0.0.0.0',
>
> 'networkSourceMaskLen' => 0,
>                                                         'wildcards' =>
> 3678448,
>
> 'networkTypeOfService' => 0,
>                                                         'dataLayerType' =>
> '0x0000',
>
> 'dataLayerVirtualLanPriorityCodePoint' => 0,
>
> 'transportDestination' => 0,
>
> 'dataLayerVirtualLan' => -1,
>                                                         'inputPort' => 2
>                                                       },
>                                            'tableId' => 0,
>                                            'idleTimeout' => 5,
>                                            'byteCount' => 48534,
>                                            'packetCount' => 664,
>                                            'actions' => [
>                                                           {
>                                                             'type' =>
> 'OUTPUT',
>                                                             'port' => 1,
>                                                             'lengthU' => 8,
>                                                             'length' => 8,
>                                                             'maxLength' =>
> -1
>                                                           }
>                                                         ],
>                                            'durationSeconds' => 632,
>                                            'priority' => 0,
>                                            'hardTimeout' => 0,
>                                            'durationNanoseconds' =>
> 841000000
>                                          }
>                                        ]
>         };
>
>
>
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
>



More information about the discuss mailing list