aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Wells <iawells@cisco.com>2018-06-18 13:53:17 -0700
committerFlorin Coras <florin.coras@gmail.com>2018-06-22 02:59:35 +0000
commitd600ffe13a0f8f5d11fdea6ab7b24a364c968347 (patch)
tree2ccd1705c09894bc46682d89b5247a3198dbd706
parentcef1e2a8b49306fc1347d97b6d74255923292edf (diff)
Update tapv2 documentation
The documentation in the API file says that 0xffff == 'no interface ID specified' but the code tests against ~(u32)0. Change-Id: I5cd83d876c3ad4f53a5b01463299d4fcb806ea98 Signed-off-by: Ian Wells <iawells@cisco.com>
-rw-r--r--src/vnet/devices/tap/tapv2.api2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/devices/tap/tapv2.api b/src/vnet/devices/tap/tapv2.api
index 167b7a601a1..e65102ce777 100644
--- a/src/vnet/devices/tap/tapv2.api
+++ b/src/vnet/devices/tap/tapv2.api
@@ -24,7 +24,7 @@ option version = "2.0.0";
/** \brief Initialize a new tap interface with the given paramters
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
- @param id - interface id, 0xffff means auto
+ @param id - interface id, 0xffffffff means auto
@param use_random_mac - let the system generate a unique mac address
@param mac_address - mac addr to assign to the interface if use_radom not set
@param tx_ring_sz - the number of entries of TX ring
d>Grokmirror user
aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/cleanup/tasks/kill_process.yaml
blob: d6c6ed5118a17cc7580a3517974cb6dd3afa10bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
# file: roles/cleanup/tasks/kill_process.yaml

- name: Kill Process - {{ process }}
  block:
    - name: Get PID Of {{ process }}
      shell: "ps -ef | grep -v grep | grep -w {{ process }} | awk '{print $2}'"
      when:
        - process is defined and process != ""
      register: running_processes
      tags:
        - kill-process

    - name: Safe Kill {{ process }}
      shell: "kill {{ item }}"
      with_items: "{{ running_processes.stdout_lines }}"
      tags:
        - kill-process

    - wait_for:
        path: "/proc/{{ item }}/status"
        state: "absent"
      with_items: "{{ running_processes.stdout_lines }}"
      ignore_errors: true
      register: killed_processes
      tags:
        - kill-process

    - name: Kill Process - Force Kill {{ process }}
      shell: "kill -9 {{ item }}"
      with_items: "{{ killed_processes.results | select('failed') | map(attribute='item') | list }}"
      tags:
        - kill-process

  rescue:
    - fail:
        msg: "Kill process {{ process }} failed!"