Fix fetching existing AS (#58756)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
This commit is contained in:
parent
83f92987b8
commit
709fbcf804
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ class Provider(CliProvider):
|
|||
existing_as = None
|
||||
if config:
|
||||
match = re.search(r'router bgp (\d+)', config, re.M)
|
||||
existing_as = match.group(1)
|
||||
if match:
|
||||
existing_as = match.group(1)
|
||||
|
||||
operation = self.params['operation']
|
||||
|
||||
|
|
Loading…
Reference in a new issue