Skip to content

bgp_configs.go : pyang ; config build issue #2912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nplanelcisco opened this issue Apr 22, 2025 · 1 comment
Open

bgp_configs.go : pyang ; config build issue #2912

nplanelcisco opened this issue Apr 22, 2025 · 1 comment

Comments

@nplanelcisco
Copy link

nplanelcisco commented Apr 22, 2025

Following the instructions in tools/pyang_plugins/README.md doesn't work and report errors
distribution ubuntu 24.04

PYTHONPATH=. ./bin/pyang   --plugindir $CWD/gobgp/tools/pyang_plugins   -p $CWD/yang/standard/ietf/RFC   -p $CWD/public/release/models   -p $CWD/public/release/models/bgp   -p $CWD/public/release/models/policy   -f golang   $CWD/public/release/models/policy/openconfig-routing-policy.yang   $CWD/public/release/models/bgp/openconfig-bgp.yang   $CWD/gobgp/tools/pyang_plugins/gobgp.yang   | gofmt > $CWD/gobgp/pkg/config/oc/bgp_configs.go
/b2/gobgp/tools/pyang_plugins/gobgp/tools/pyang_plugins/gobgp.yang:1428: error: type "route-family" not found in module "gobgp"
/b2/gobgp/tools/pyang_plugins/public/release/models/bgp/openconfig-bgp-policy.yang:140: error: restriction "require-instance" not allowed for this base type
/b2/gobgp/tools/pyang_plugins/public/release/models/bgp/openconfig-bgp-policy.yang:163: error: restriction "require-instance" not allowed for this base type
/b2/gobgp/tools/pyang_plugins/public/release/models/bgp/openconfig-bgp-policy.yang:184: error: restriction "require-instance" not allowed for this base type
/b2/gobgp/tools/pyang_plugins/public/release/models/bgp/openconfig-bgp-policy.yang:443: error: restriction "require-instance" not allowed for this base type
/b2/gobgp/tools/pyang_plugins/public/release/models/bgp/openconfig-bgp-policy.yang:492: error: restriction "require-instance" not allowed for this base type
/b2/gobgp/tools/pyang_plugins/public/release/models/bgp/openconfig-bgp.yang:428: error: restriction "require-instance" not allowed for this base type
warning openconfig-types:percentage: percentage has already been emitted from bgp-types:percentage.
@nplanelcisco nplanelcisco changed the title pyang bgp_configs.go : pyang ; config build issue Apr 22, 2025
@fujita
Copy link
Member

fujita commented May 13, 2025

I think that the config file was created even with those errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants