Skip to content

Commit a25859c

Browse files
committed
PUC-740: review comments
1 parent ffdad74 commit a25859c

File tree

4 files changed

+121
-383
lines changed

4 files changed

+121
-383
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,31 +0,0 @@
1-
clouds:
2-
uc-dev-infra:
3-
auth_type: v3websso
4-
identity_provider: sso
5-
protocol: openid
6-
auth:
7-
auth_url: https://keystone.dev.undercloud.rackspace.net/v3
8-
project_domain_name: infra
9-
project_name: baremetal
10-
uc-dev:
11-
auth_type: v3websso
12-
identity_provider: sso
13-
protocol: openid
14-
auth:
15-
auth_url: https://keystone.dev.undercloud.rackspace.net/v3
16-
project_domain_name: Default
17-
uc-staging-infra:
18-
auth_type: v3websso
19-
identity_provider: sso
20-
protocol: openid
21-
auth:
22-
auth_url: https://keystone.staging.undercloud.rackspace.net/v3
23-
project_domain_name: infra
24-
project_name: baremetal
25-
uc-staging:
26-
auth_type: v3websso
27-
identity_provider: sso
28-
protocol: openid
29-
auth:
30-
auth_url: https://keystone.staging.undercloud.rackspace.net/v3
31-
project_domain_name: Default
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import typer
2+
from diff_nautobot_understack.project.main import (
3+
openstack_project_diff_from_nautobot_tenant,
4+
)
5+
from diff_nautobot_understack.network.main import (
6+
openstack_network_diff_from_ucvni_network,
7+
)
8+
9+
app = typer.Typer(
10+
name="diff",
11+
add_completion=False,
12+
help="compare data between Openstack and Nautobot.",
13+
)
14+
15+
16+
@app.command()
17+
def project(name):
18+
"""Nautobot tenants ⟹ Openstack projects"""
19+
openstack_project_diff_from_nautobot_tenant()
20+
21+
22+
@app.command()
23+
def network(name):
24+
"""Nautobot ucvnis ⟹ Openstack networks"""
25+
openstack_network_diff_from_ucvni_network()
26+
27+
28+
if __name__ == "__main__":
29+
app()

0 commit comments

Comments
 (0)