summaryrefslogtreecommitdiff
path: root/.zsh/zshenv/80_python
blob: 251155c22803f6fde163d6be2c61887f1914002c (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
# zshenv/80_python
#
# Set variables related to Python
#
# Copyright © 2014-2016 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git

#_PYTHON_USER=$HOME/.local/lib/python2.7/site-packages
#[ -d $_PYTHON_USER ] && export PYTHONPATH=$_PYTHON_USER:$PYTHONPATH

_ZIPYTHON_LATEST=$HOME/tmp/ziPythonLatest/
[ -d $_ZIPYTHON_LATEST ] && export PYTHONPATH=$PYTHONPATH:$_ZIPYTHON_LATEST

_PYENV_ROOT="$HOME/.pyenv"
if [ -d $_PYENV_ROOT ] ; then
  export PYENV_ROOT=$_PYENV_ROOT
  path_prepend $PYENV_ROOT/bin
  eval "$(pyenv init -)"
fi

export PYTHONSTARTUP=$HOME/.pythonrc

# vim:ft=zsh
159f80de (diff)
net: Don't delete routes in different VRFs
When deleting an IP address from an interface, there is a clean-up of routes which refer to this local address. However, there was no check to see that the VRF matched. This meant that deletion wasn't confined to the VRF it should have been. To solve this, a new field has been added to fib_info to hold a table id. When removing fib entries corresponding to a local ip address, this table id is also used in the comparison. The table id is populated when the fib_info is created. This was already done in some places, but not in ip_rt_ioctl(). This has now been fixed. Fixes: 021dd3b8a142 ("net: Add routes to the table associated with the device") Acked-by: David Ahern <dsa@cumulusnetworks.com> Tested-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat