From c61672da4435ee9ecd16ac118f40212bc4a6afc6 Mon Sep 17 00:00:00 2001 From: Nikhil Date: Mon, 21 Mar 2016 12:39:18 -0700 Subject: [PATCH] addons: vrf: move ip -6 fib rule for local table Ticket: CM-9968 Reviewed By: Roopa Prabhu Testing Done: yes, by installing ifupdown .deb file onto dell-s3000-02 patch to move ip -6 fib rule for local table after vrf rules Signed-off-by: Nikhil --- addons/vrf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/vrf.py b/addons/vrf.py index e8f09b6..9dd2614 100644 --- a/addons/vrf.py +++ b/addons/vrf.py @@ -310,6 +310,13 @@ class vrf(moduleBase): except Exception, e: self.logger.info('%s' %str(e)) pass + if rule in self.ip6_rule_cache: + try: + self.exec_command('ip -6 rule del pref 0') + self.exec_command('ip -6 rule add pref 32765 table local') + except Exception, e: + self.logger.info('%s' %str(e)) + pass #Example ip rule #200: from all oif blue lookup blue