Fix fetching existing AS (#58756)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/58840/head
Nilashish Chakraborty 5 years ago committed by GitHub
parent 83f92987b8
commit 709fbcf804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save